| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |