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

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

Issue 450093002: Cleanup: Remove obsolete references to webkit_glue namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | content/child/child_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 virtual void didCancelCheckingText() OVERRIDE { 122 virtual void didCancelCheckingText() OVERRIDE {
123 completion_count_++; 123 completion_count_++;
124 } 124 }
125 125
126 size_t completion_count_; 126 size_t completion_count_;
127 blink::WebVector<blink::WebTextCheckingResult> last_results_; 127 blink::WebVector<blink::WebTextCheckingResult> last_results_;
128 }; 128 };
129 129
130 // Operates unit tests for the webkit_glue::SpellCheckWord() function 130 // Operates unit tests for the content::SpellCheck::SpellCheckWord() function
131 // with the US English dictionary. 131 // with the US English dictionary.
132 // The unit tests in this function consist of: 132 // The unit tests in this function consist of:
133 // * Tests for the function with empty strings; 133 // * Tests for the function with empty strings;
134 // * Tests for the function with a valid English word; 134 // * Tests for the function with a valid English word;
135 // * Tests for the function with a valid non-English word; 135 // * Tests for the function with a valid non-English word;
136 // * Tests for the function with a valid English word with a preceding 136 // * Tests for the function with a valid English word with a preceding
137 // space character; 137 // space character;
138 // * Tests for the function with a valid English word with a preceding 138 // * Tests for the function with a valid English word with a preceding
139 // non-English word; 139 // non-English word;
140 // * Tests for the function with a valid English word with a following 140 // * Tests for the function with a valid English word with a following
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 strlen(kTestCases[i].misspelled), 1366 strlen(kTestCases[i].misspelled),
1367 0, 1367 0,
1368 &misspelling_start, 1368 &misspelling_start,
1369 &misspelling_length, 1369 &misspelling_length,
1370 &suggestions)); 1370 &suggestions));
1371 EXPECT_GE(suggestions.size(), static_cast<size_t>(1)); 1371 EXPECT_GE(suggestions.size(), static_cast<size_t>(1));
1372 if (suggestions.size() > 0) 1372 if (suggestions.size() > 0)
1373 EXPECT_EQ(suggestions[0], base::ASCIIToUTF16(kTestCases[i].suggestion)); 1373 EXPECT_EQ(suggestions[0], base::ASCIIToUTF16(kTestCases[i].suggestion));
1374 } 1374 }
1375 } 1375 }
OLDNEW
« no previous file with comments | « no previous file | content/child/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698