OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/base_switches.h" | 5 #include "base/base_switches.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "build/build_config.h" |
9 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/tracing/background_tracing_field_trial.h" | 12 #include "chrome/browser/tracing/background_tracing_field_trial.h" |
12 #include "chrome/browser/ui/browser_commands.h" | 13 #include "chrome/browser/ui/browser_commands.h" |
13 #include "chrome/browser/ui/browser_list.h" | 14 #include "chrome/browser/ui/browser_list.h" |
14 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "components/metrics/metrics_pref_names.h" | 18 #include "components/metrics/metrics_pref_names.h" |
18 #include "content/public/browser/background_tracing_config.h" | 19 #include "content/public/browser/background_tracing_config.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 274 |
274 IN_PROC_BROWSER_TEST_F(ChromeTracingDelegateBrowserTestOnStartup, | 275 IN_PROC_BROWSER_TEST_F(ChromeTracingDelegateBrowserTestOnStartup, |
275 StartupTracingThrottle) { | 276 StartupTracingThrottle) { |
276 // The startup scenario should *not* be started, since not enough | 277 // The startup scenario should *not* be started, since not enough |
277 // time has elapsed since the last upload (set in the PRE_ above). | 278 // time has elapsed since the last upload (set in the PRE_ above). |
278 EXPECT_FALSE( | 279 EXPECT_FALSE( |
279 content::BackgroundTracingManager::GetInstance()->HasActiveScenario()); | 280 content::BackgroundTracingManager::GetInstance()->HasActiveScenario()); |
280 } | 281 } |
281 | 282 |
282 } // namespace | 283 } // namespace |
OLD | NEW |