OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/metrics/metrics_state_manager.h" | 5 #include "chrome/browser/metrics/metrics_state_manager.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/common/metrics/caching_permuted_entropy_provider.h" | |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/variations/caching_permuted_entropy_provider.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace metrics { | 17 namespace metrics { |
18 | 18 |
19 class MetricsStateManagerTest : public testing::Test { | 19 class MetricsStateManagerTest : public testing::Test { |
20 public: | 20 public: |
21 MetricsStateManagerTest() { | 21 MetricsStateManagerTest() { |
22 MetricsStateManager::RegisterPrefs(prefs_.registry()); | 22 MetricsStateManager::RegisterPrefs(prefs_.registry()); |
23 } | 23 } |
24 | 24 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 state_manager->GetLowEntropySource(); | 152 state_manager->GetLowEntropySource(); |
153 | 153 |
154 EXPECT_FALSE(prefs_.GetBoolean(prefs::kMetricsResetIds)); | 154 EXPECT_FALSE(prefs_.GetBoolean(prefs::kMetricsResetIds)); |
155 } | 155 } |
156 | 156 |
157 EXPECT_NE(kInitialClientId, prefs_.GetString(prefs::kMetricsClientID)); | 157 EXPECT_NE(kInitialClientId, prefs_.GetString(prefs::kMetricsClientID)); |
158 } | 158 } |
159 | 159 |
160 } // namespace metrics | 160 } // namespace metrics |
OLD | NEW |