linux_aura: Disable the plugin install infobar.
[chromium-blink-merge.git] / components / metrics / machine_id_provider_win_unittest.cc
blob44917d00a6eb350f107361325e36fbbf41428034
1 // Copyright 2014 The Chromium Authors. All rights reserved.
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 "base/memory/ref_counted.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace metrics {
12 TEST(MachineIdProviderTest, GetId) {
13 scoped_refptr<MachineIdProvider> provider(
14 MachineIdProvider::CreateInstance());
15 std::string id1 = provider->GetMachineId();
17 EXPECT_NE(std::string(), id1);
19 std::string id2 = provider->GetMachineId();
20 EXPECT_EQ(id1, id2);
23 } // namespace metrics