Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: content/browser/tracing/tracing_controller_browsertest.cc

Issue 439243006: Disable EnableCaptureAndDisableMonitoringWithEmptyFileAndNullCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 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"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 } 285 }
286 286
287 IN_PROC_BROWSER_TEST_F(TracingControllerTest, 287 IN_PROC_BROWSER_TEST_F(TracingControllerTest,
288 EnableCaptureAndDisableMonitoringWithFilePath) { 288 EnableCaptureAndDisableMonitoringWithFilePath) {
289 base::FilePath file_path; 289 base::FilePath file_path;
290 base::CreateTemporaryFile(&file_path); 290 base::CreateTemporaryFile(&file_path);
291 TestEnableCaptureAndDisableMonitoring(file_path); 291 TestEnableCaptureAndDisableMonitoring(file_path);
292 EXPECT_EQ(file_path.value(), last_actual_monitoring_file_path().value()); 292 EXPECT_EQ(file_path.value(), last_actual_monitoring_file_path().value());
293 } 293 }
294 294
295 // See http://crbug.com/392446
296 #if defined(OS_ANDROID)
297 #define MAYBE_EnableCaptureAndDisableMonitoringWithEmptyFileAndNullCallback DISA BLED_EnableCaptureAndDisableMonitoringWithEmptyFileAndNullCallback
Peter Beverloo 2014/08/04 14:27:41 Please wrap these lines to 80 characters: #define
Michael van Ouwerkerk 2014/08/04 14:30:44 Done.
298 #else
299 #define MAYBE_EnableCaptureAndDisableMonitoringWithEmptyFileAndNullCallback Enab leCaptureAndDisableMonitoringWithEmptyFileAndNullCallback
300 #endif
295 IN_PROC_BROWSER_TEST_F( 301 IN_PROC_BROWSER_TEST_F(
296 TracingControllerTest, 302 TracingControllerTest,
297 EnableCaptureAndDisableMonitoringWithEmptyFileAndNullCallback) { 303 MAYBE_EnableCaptureAndDisableMonitoringWithEmptyFileAndNullCallback) {
298 Navigate(shell()); 304 Navigate(shell());
299 305
300 TracingController* controller = TracingController::GetInstance(); 306 TracingController* controller = TracingController::GetInstance();
301 EXPECT_TRUE(controller->EnableMonitoring( 307 EXPECT_TRUE(controller->EnableMonitoring(
302 "*", TracingController::ENABLE_SAMPLING, 308 "*", TracingController::ENABLE_SAMPLING,
303 TracingController::EnableMonitoringDoneCallback())); 309 TracingController::EnableMonitoringDoneCallback()));
304 controller->CaptureMonitoringSnapshot( 310 controller->CaptureMonitoringSnapshot(
305 base::FilePath(), TracingController::TracingFileResultCallback()); 311 base::FilePath(), TracingController::TracingFileResultCallback());
306 base::RunLoop().RunUntilIdle(); 312 base::RunLoop().RunUntilIdle();
307 EXPECT_TRUE(controller->DisableMonitoring( 313 EXPECT_TRUE(controller->DisableMonitoring(
308 TracingController::DisableMonitoringDoneCallback())); 314 TracingController::DisableMonitoringDoneCallback()));
309 base::RunLoop().RunUntilIdle(); 315 base::RunLoop().RunUntilIdle();
310 } 316 }
311 317
312 } // namespace content 318 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698