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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_provider_unittest.cc

Issue 8784004: Update includes to new header locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 <vector> 5 #include <vector>
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/common/spellcheck_messages.h" 8 #include "chrome/common/spellcheck_messages.h"
9 #include "chrome/renderer/spellchecker/spellcheck_provider.h" 9 #include "chrome/renderer/spellchecker/spellcheck_provider.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingComple tion.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingComple tion.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult .h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult .h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
15 15
16 namespace { 16 namespace {
17 17
18 // Faked test target, which stores sent message for verification, 18 // Faked test target, which stores sent message for verification,
19 // and allows manipulate |is_using_platform_spelling_engine| parameter. 19 // and allows manipulate |is_using_platform_spelling_engine| parameter.
20 class TestingSpellCheckProvider : public SpellCheckProvider { 20 class TestingSpellCheckProvider : public SpellCheckProvider {
21 public: 21 public:
22 TestingSpellCheckProvider() 22 TestingSpellCheckProvider()
23 : SpellCheckProvider(NULL, NULL), 23 : SpellCheckProvider(NULL, NULL),
24 is_using_platform_spelling_engine_(true) { 24 is_using_platform_spelling_engine_(true) {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 FakeTextCheckingCompletion completion; 170 FakeTextCheckingCompletion completion;
171 provider_.RequestTextChecking(WebKit::WebString("hello"), 171 provider_.RequestTextChecking(WebKit::WebString("hello"),
172 document_tag, 172 document_tag,
173 &completion); 173 &completion);
174 EXPECT_EQ(completion.completion_count_, 1U); 174 EXPECT_EQ(completion.completion_count_, 1U);
175 EXPECT_EQ(provider_.messages_.size(), 0U); 175 EXPECT_EQ(provider_.messages_.size(), 0U);
176 EXPECT_EQ(provider_.pending_text_request_size(), 0U); 176 EXPECT_EQ(provider_.pending_text_request_size(), 0U);
177 } 177 }
178 178
179 } // namespace 179 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698