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

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

Issue 11826033: Update some #includes in chrome/renderer/spellchecker for headers in the new Platform directory (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "chrome/common/spellcheck_messages.h" 9 #include "chrome/common/spellcheck_messages.h"
10 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h" 10 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
13 13
14 // Tests for Hunspell functionality in SpellcheckingProvider 14 // Tests for Hunspell functionality in SpellcheckingProvider
15 15
16 namespace { 16 namespace {
17 17
18 TEST_F(SpellCheckProviderTest, UsingHunspell) { 18 TEST_F(SpellCheckProviderTest, UsingHunspell) {
19 FakeTextCheckingCompletion completion; 19 FakeTextCheckingCompletion completion;
20 provider_.RequestTextChecking(WebKit::WebString("hello"), 20 provider_.RequestTextChecking(WebKit::WebString("hello"),
21 &completion); 21 &completion);
22 EXPECT_EQ(completion.completion_count_, 1U); 22 EXPECT_EQ(completion.completion_count_, 1U);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Test that the SpellCheckProvider class sends a request when it receives a 109 // Test that the SpellCheckProvider class sends a request when it receives a
110 // Russian word. 110 // Russian word.
111 const wchar_t kRussianWord[] = L"\x0431\x0451\x0434\x0440\x0430"; 111 const wchar_t kRussianWord[] = L"\x0431\x0451\x0434\x0440\x0430";
112 provider_.RequestTextChecking(WebKit::WebString(WideToUTF16(kRussianWord)), 112 provider_.RequestTextChecking(WebKit::WebString(WideToUTF16(kRussianWord)),
113 &completion); 113 &completion);
114 EXPECT_EQ(completion.completion_count_, 4U); 114 EXPECT_EQ(completion.completion_count_, 4U);
115 EXPECT_EQ(completion.cancellation_count_, 2U); 115 EXPECT_EQ(completion.cancellation_count_, 2U);
116 } 116 }
117 117
118 } // namespace 118 } // namespace
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698