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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc

Issue 19479003: Use a direct include of the message_loop header in chrome/browser/, part 10. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" 9 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h"
10 #include "chrome/common/spellcheck_result.h" 10 #include "chrome/common/spellcheck_result.h"
11 #include "content/public/test/test_utils.h" 11 #include "content/public/test/test_utils.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace { 14 namespace {
15 15
16 class SpellcheckMacTest: public testing::Test { 16 class SpellcheckMacTest: public testing::Test {
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // RequestTextCheck results. 379 // RequestTextCheck results.
380 TEST_F(SpellcheckMacTest, SpellCheckIgnoresOrthography) { 380 TEST_F(SpellcheckMacTest, SpellCheckIgnoresOrthography) {
381 string16 test_string(ASCIIToUTF16("Icland is awesome.")); 381 string16 test_string(ASCIIToUTF16("Icland is awesome."));
382 spellcheck_mac::RequestTextCheck(0, test_string, callback_); 382 spellcheck_mac::RequestTextCheck(0, test_string, callback_);
383 WaitForCallback(); 383 WaitForCallback();
384 EXPECT_TRUE(callback_finished_); 384 EXPECT_TRUE(callback_finished_);
385 EXPECT_EQ(1U, results_.size()); 385 EXPECT_EQ(1U, results_.size());
386 } 386 }
387 387
388 } // namespace 388 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698