OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "content/browser/tracing/tracing_controller_impl.h" | 7 #include "content/browser/tracing/tracing_controller_impl.h" |
8 #include "content/public/test/browser_test_utils.h" | 8 #include "content/public/test/browser_test_utils.h" |
| 9 #include "content/public/test/content_browser_test.h" |
| 10 #include "content/public/test/content_browser_test_utils.h" |
9 #include "content/shell/browser/shell.h" | 11 #include "content/shell/browser/shell.h" |
10 #include "content/test/content_browser_test.h" | |
11 #include "content/test/content_browser_test_utils.h" | |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class TracingControllerTest : public ContentBrowserTest { | 15 class TracingControllerTest : public ContentBrowserTest { |
16 public: | 16 public: |
17 TracingControllerTest() {} | 17 TracingControllerTest() {} |
18 | 18 |
19 virtual void SetUp() OVERRIDE { | 19 virtual void SetUp() OVERRIDE { |
20 get_categories_done_callback_count_ = 0; | 20 get_categories_done_callback_count_ = 0; |
21 enable_recording_done_callback_count_ = 0; | 21 enable_recording_done_callback_count_ = 0; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 TracingController::EnableMonitoringDoneCallback())); | 303 TracingController::EnableMonitoringDoneCallback())); |
304 controller->CaptureMonitoringSnapshot( | 304 controller->CaptureMonitoringSnapshot( |
305 base::FilePath(), TracingController::TracingFileResultCallback()); | 305 base::FilePath(), TracingController::TracingFileResultCallback()); |
306 base::RunLoop().RunUntilIdle(); | 306 base::RunLoop().RunUntilIdle(); |
307 EXPECT_TRUE(controller->DisableMonitoring( | 307 EXPECT_TRUE(controller->DisableMonitoring( |
308 TracingController::DisableMonitoringDoneCallback())); | 308 TracingController::DisableMonitoringDoneCallback())); |
309 base::RunLoop().RunUntilIdle(); | 309 base::RunLoop().RunUntilIdle(); |
310 } | 310 } |
311 | 311 |
312 } // namespace content | 312 } // namespace content |
OLD | NEW |