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

Side by Side Diff: components/spellcheck/browser/feedback_unittest.cc

Issue 2159283003: [WIP][DO NOT LAND] Componentize spellcheck Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // Unit tests for |Feedback| object. 5 // Unit tests for |Feedback| object.
6 6
7 #include "chrome/browser/spellchecker/feedback.h" 7 #include "components/spellcheck/browser/feedback.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using base::ASCIIToUTF16; 15 using base::ASCIIToUTF16;
16 16
17 namespace spellcheck { 17 namespace spellcheck {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 kRendererProcessId, 293 kRendererProcessId,
294 Misspelling(kMisspelledText, kMisspellingStart, kMisspellingLength, 294 Misspelling(kMisspelledText, kMisspellingStart, kMisspellingLength,
295 std::vector<base::string16>(1, kSuggestion), 295 std::vector<base::string16>(1, kSuggestion),
296 kMisspellingHash)); 296 kMisspellingHash));
297 feedback_.GetMisspelling(kMisspellingHash)->action.Finalize(); 297 feedback_.GetMisspelling(kMisspellingHash)->action.Finalize();
298 feedback_.EraseFinalizedMisspellings(kRendererProcessId); 298 feedback_.EraseFinalizedMisspellings(kRendererProcessId);
299 EXPECT_TRUE(feedback_.FindMisspellings(kMisspelledWord).empty()); 299 EXPECT_TRUE(feedback_.FindMisspellings(kMisspelledWord).empty());
300 } 300 }
301 301
302 } // namespace spellcheck 302 } // namespace spellcheck
OLDNEW
« no previous file with comments | « components/spellcheck/browser/feedback_sender_unittest.cc ('k') | components/spellcheck/browser/misspelling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698