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

Side by Side Diff: content/test/test_blink_web_unit_test_support.cc

Issue 1398153002: Don't use base::MessageLoop::{Quit,QuitClosure} in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « content/test/appcache_test_helper.cc ('k') | 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 "content/test/test_blink_web_unit_test_support.h" 5 #include "content/test/test_blink_web_unit_test_support.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 return BlinkPlatformImpl::currentThread(); 359 return BlinkPlatformImpl::currentThread();
360 } 360 }
361 361
362 void TestBlinkWebUnitTestSupport::enterRunLoop() { 362 void TestBlinkWebUnitTestSupport::enterRunLoop() {
363 DCHECK(base::MessageLoop::current()); 363 DCHECK(base::MessageLoop::current());
364 DCHECK(!base::MessageLoop::current()->is_running()); 364 DCHECK(!base::MessageLoop::current()->is_running());
365 base::MessageLoop::current()->Run(); 365 base::MessageLoop::current()->Run();
366 } 366 }
367 367
368 void TestBlinkWebUnitTestSupport::exitRunLoop() { 368 void TestBlinkWebUnitTestSupport::exitRunLoop() {
369 base::MessageLoop::current()->Quit(); 369 base::MessageLoop::current()->QuitWhenIdle();
370 } 370 }
371 371
372 void TestBlinkWebUnitTestSupport::getPluginList( 372 void TestBlinkWebUnitTestSupport::getPluginList(
373 bool refresh, blink::WebPluginListBuilder* builder) { 373 bool refresh, blink::WebPluginListBuilder* builder) {
374 builder->addPlugin("pdf", "pdf", "pdf-files"); 374 builder->addPlugin("pdf", "pdf", "pdf-files");
375 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); 375 builder->addMediaTypeToLastPlugin("application/pdf", "pdf");
376 } 376 }
377 377
378 } // namespace content 378 } // namespace content
OLDNEW
« no previous file with comments | « content/test/appcache_test_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698