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.
5 #include "components/metrics/machine_id_provider.h"
7 #include "testing/gtest/include/gtest/gtest.h"
11 TEST(MachineIdProviderWinTest, GetId) {
12 EXPECT_TRUE(MachineIdProvider::HasId());
14 const std::string id1 = MachineIdProvider::GetMachineId();
15 EXPECT_NE(std::string(), id1);
17 const std::string id2 = MachineIdProvider::GetMachineId();
21 } // namespace metrics