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

Unified Diff: chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.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/spellchecker/spellcheck_message_filter_mac_browsertest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc b/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc
index 0a25eebce09456a348e1c952ab61dcd99c8a4902..28c71dd57e8cf6e2fa057925b45703facdac4603 100644
--- a/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc
+++ b/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc
@@ -18,18 +18,18 @@
// allows verification by the test case.
class TestingSpellCheckMessageFilter : public SpellCheckMessageFilterMac {
public:
- explicit TestingSpellCheckMessageFilter(MessageLoopForUI* loop)
+ explicit TestingSpellCheckMessageFilter(base::MessageLoopForUI* loop)
: SpellCheckMessageFilterMac(0),
loop_(loop) { }
virtual bool Send(IPC::Message* message) OVERRIDE {
sent_messages_.push_back(message);
- loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ loop_->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
return true;
}
ScopedVector<IPC::Message> sent_messages_;
- MessageLoopForUI* loop_;
+ base::MessageLoopForUI* loop_;
private:
virtual ~TestingSpellCheckMessageFilter() {}
@@ -41,7 +41,7 @@ typedef InProcessBrowserTest SpellCheckMessageFilterMacBrowserTest;
IN_PROC_BROWSER_TEST_F(SpellCheckMessageFilterMacBrowserTest,
SpellCheckReturnMessage) {
scoped_refptr<TestingSpellCheckMessageFilter> target(
- new TestingSpellCheckMessageFilter(MessageLoopForUI::current()));
+ new TestingSpellCheckMessageFilter(base::MessageLoopForUI::current()));
SpellCheckHostMsg_RequestTextCheck to_be_received(
123, 456, UTF8ToUTF16("zz."));
@@ -49,7 +49,7 @@ IN_PROC_BROWSER_TEST_F(SpellCheckMessageFilterMacBrowserTest,
target->OnMessageReceived(to_be_received, &handled);
EXPECT_TRUE(handled);
- MessageLoopForUI::current()->Run();
+ base::MessageLoopForUI::current()->Run();
EXPECT_EQ(1U, target->sent_messages_.size());
int sent_identifier;

Powered by Google App Engine
This is Rietveld 408576698