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

Unified Diff: chrome/browser/external_protocol/external_protocol_handler_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/external_protocol/external_protocol_handler_unittest.cc
diff --git a/chrome/browser/external_protocol/external_protocol_handler_unittest.cc b/chrome/browser/external_protocol/external_protocol_handler_unittest.cc
index faf5704cc0d335c7f45092a641867b93fc9e9c57..d8a3679f183b090d87854a7bc8be3fabdee7c31b 100644
--- a/chrome/browser/external_protocol/external_protocol_handler_unittest.cc
+++ b/chrome/browser/external_protocol/external_protocol_handler_unittest.cc
@@ -74,7 +74,7 @@ class FakeExternalProtocolHandlerDelegate
}
virtual void FinishedProcessingCheck() OVERRIDE {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
void set_os_state(ShellIntegration::DefaultWebClientState value) {
@@ -100,7 +100,7 @@ class FakeExternalProtocolHandlerDelegate
class ExternalProtocolHandlerTest : public testing::Test {
protected:
ExternalProtocolHandlerTest()
- : ui_thread_(BrowserThread::UI, MessageLoop::current()),
+ : ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
file_thread_(BrowserThread::FILE) {}
virtual void SetUp() {
@@ -124,14 +124,14 @@ class ExternalProtocolHandlerTest : public testing::Test {
delegate_.set_os_state(os_state);
ExternalProtocolHandler::LaunchUrlWithDelegate(url, 0, 0, &delegate_);
if (block_state != ExternalProtocolHandler::BLOCK)
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
ASSERT_EQ(should_prompt, delegate_.has_prompted());
ASSERT_EQ(should_launch, delegate_.has_launched());
ASSERT_EQ(should_block, delegate_.has_blocked());
}
- MessageLoopForUI ui_message_loop_;
+ base::MessageLoopForUI ui_message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
« no previous file with comments | « chrome/browser/external_protocol/external_protocol_handler.cc ('k') | chrome/browser/feedback/feedback_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698