OLD | NEW |
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 "chrome/browser/spellchecker/spellcheck_platform.h" | 5 #include "chrome/browser/spellchecker/spellcheck_platform.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/common/spellcheck_result.h" | 14 #include "chrome/common/spellcheck_result.h" |
12 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 | 17 |
15 namespace { | 18 namespace { |
16 | 19 |
17 class SpellcheckPlatformMacTest: public testing::Test { | 20 class SpellcheckPlatformMacTest: public testing::Test { |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 // RequestTextCheck results. | 386 // RequestTextCheck results. |
384 TEST_F(SpellcheckPlatformMacTest, SpellCheckIgnoresOrthography) { | 387 TEST_F(SpellcheckPlatformMacTest, SpellCheckIgnoresOrthography) { |
385 base::string16 test_string(base::ASCIIToUTF16("Icland is awesome.")); | 388 base::string16 test_string(base::ASCIIToUTF16("Icland is awesome.")); |
386 spellcheck_platform::RequestTextCheck(0, test_string, callback_); | 389 spellcheck_platform::RequestTextCheck(0, test_string, callback_); |
387 WaitForCallback(); | 390 WaitForCallback(); |
388 EXPECT_TRUE(callback_finished_); | 391 EXPECT_TRUE(callback_finished_); |
389 EXPECT_EQ(1U, results_.size()); | 392 EXPECT_EQ(1U, results_.size()); |
390 } | 393 } |
391 | 394 |
392 } // namespace | 395 } // namespace |
OLD | NEW |