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/files/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" | 9 #include "content/public/test/content_browser_test.h" |
10 #include "content/public/test/content_browser_test_utils.h" | 10 #include "content/public/test/content_browser_test_utils.h" |
11 #include "content/shell/browser/shell.h" | 11 #include "content/shell/browser/shell.h" |
12 | 12 |
13 using base::debug::CategoryFilter; | 13 using base::debug::CategoryFilter; |
14 using base::debug::TraceOptions; | 14 using base::debug::TraceOptions; |
15 using base::debug::RECORD_CONTINUOUSLY; | 15 using base::debug::RECORD_CONTINUOUSLY; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 TracingController::EnableMonitoringDoneCallback())); | 324 TracingController::EnableMonitoringDoneCallback())); |
325 controller->CaptureMonitoringSnapshot( | 325 controller->CaptureMonitoringSnapshot( |
326 base::FilePath(), TracingController::TracingFileResultCallback()); | 326 base::FilePath(), TracingController::TracingFileResultCallback()); |
327 base::RunLoop().RunUntilIdle(); | 327 base::RunLoop().RunUntilIdle(); |
328 EXPECT_TRUE(controller->DisableMonitoring( | 328 EXPECT_TRUE(controller->DisableMonitoring( |
329 TracingController::DisableMonitoringDoneCallback())); | 329 TracingController::DisableMonitoringDoneCallback())); |
330 base::RunLoop().RunUntilIdle(); | 330 base::RunLoop().RunUntilIdle(); |
331 } | 331 } |
332 | 332 |
333 } // namespace content | 333 } // namespace content |
OLD | NEW |