1 // Copyright 2014 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/metrics/machine_id_provider.h" 6 7 #include "testing/gtest/include/gtest/gtest.h" 8 9 namespace metrics { 10 TEST(MachineIdProviderWinTest,GetId)11TEST(MachineIdProviderWinTest, GetId) { 12 EXPECT_TRUE(MachineIdProvider::HasId()); 13 14 const std::string id1 = MachineIdProvider::GetMachineId(); 15 EXPECT_NE(std::string(), id1); 16 17 const std::string id2 = MachineIdProvider::GetMachineId(); 18 EXPECT_EQ(id1, id2); 19 } 20 21 } // namespace metrics 22