Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_service.h" | 5 #include "chrome/browser/metrics/metrics_service.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" |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 GetLocalState()->SetBoolean(crash_pref, true); | 367 GetLocalState()->SetBoolean(crash_pref, true); |
| 368 EXPECT_TRUE(MetricsServiceHelper::IsCrashReportingEnabled()); | 368 EXPECT_TRUE(MetricsServiceHelper::IsCrashReportingEnabled()); |
| 369 GetLocalState()->ClearPref(crash_pref); | 369 GetLocalState()->ClearPref(crash_pref); |
| 370 EXPECT_FALSE(MetricsServiceHelper::IsCrashReportingEnabled()); | 370 EXPECT_FALSE(MetricsServiceHelper::IsCrashReportingEnabled()); |
| 371 #endif // !defined(OS_CHROMEOS) | 371 #endif // !defined(OS_CHROMEOS) |
| 372 #else // defined(GOOGLE_CHROME_BUILD) | 372 #else // defined(GOOGLE_CHROME_BUILD) |
| 373 // Chromium branded browsers never have crash reporting enabled. | 373 // Chromium branded browsers never have crash reporting enabled. |
| 374 EXPECT_FALSE(MetricsServiceHelper::IsCrashReportingEnabled()); | 374 EXPECT_FALSE(MetricsServiceHelper::IsCrashReportingEnabled()); |
| 375 #endif // defined(GOOGLE_CHROME_BUILD) | 375 #endif // defined(GOOGLE_CHROME_BUILD) |
| 376 } | 376 } |
| 377 | |
| 378 TEST_F(MetricsServiceTest, ResetMetricsIDs) { | |
| 379 MetricsService service; | |
| 380 service.ForceC | |
|
Alexei Svitkine (slow)
2014/03/28 19:02:50
What's going on here?
jwd
2014/03/28 19:43:15
Wasn't done yet. Next patch has actual content.
| |
| 381 service.GetLowEntropySource(); | |
| 382 } | |
| OLD | NEW |