Chromium Code Reviews| 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 949da699072ab8102074d893772f34b6347dc636..6e26173acacc17464093d5dedcfde81fa2a2a52b 100644 |
| --- a/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc |
| +++ b/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc |
| @@ -8,10 +8,10 @@ |
| #include "base/utf_string_conversions.h" |
| #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
| #include "chrome/common/spellcheck_messages.h" |
| +#include "chrome/common/spellcheck_result.h" |
| #include "chrome/test/base/in_process_browser_test.h" |
| #include "chrome/test/base/ui_test_utils.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| -#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult.h" |
| namespace { |
| @@ -56,15 +56,15 @@ IN_PROC_BROWSER_TEST_F(SpellCheckMessageFilterMacBrowserTest, |
| int sent_identifier; |
| int sent_tag; |
| - std::vector<WebKit::WebTextCheckingResult> sent_results; |
| + std::vector<SpellCheckResult> sent_results; |
| bool ok = SpellCheckMsg_RespondTextCheck::Read( |
| target->sent_messages_[0], &sent_identifier, &sent_tag, &sent_results); |
| EXPECT_TRUE(ok); |
| EXPECT_EQ(1U, sent_results.size()); |
| - EXPECT_EQ(sent_results[0].position, 0); |
| - EXPECT_EQ(sent_results[0].length, 2); |
| - EXPECT_EQ(sent_results[0].error, |
| - WebKit::WebTextCheckingResult::ErrorSpelling); |
| + EXPECT_EQ(sent_results[0].location(), 0); |
| + EXPECT_EQ(sent_results[0].length(), 2); |
| + EXPECT_EQ(sent_results[0].type(), |
| + SpellCheckResut::Spelling); |
|
Hironori Bono
2012/02/16 04:22:45
nit: SpellCheckResut -> SpellCheckResult?
|
| } |
| } // namespace |