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

Unified Diff: chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc

Issue 1230933002: Patch 3.1: Refactored spellcheck_message_filter to be generic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@platform_flag
Patch Set: Updated gn build variable to match gyp side Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter_mac_unittest.cc b/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc
similarity index 86%
rename from chrome/browser/spellchecker/spellcheck_message_filter_mac_unittest.cc
rename to chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc
index 4cab6d6bacc665329ff1d04192df0a4fe4505a7c..26897c0ee6de0b026655349b3c2dcb098bc1973c 100644
--- a/chrome/browser/spellchecker/spellcheck_message_filter_mac_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
+#include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/spellcheck_messages.h"
@@ -13,7 +13,7 @@
namespace {
-TEST(SpellcheckMessageFilterMacTest, CombineResults) {
+TEST(SpellcheckMessageFilterPlatformMacTest, CombineResults) {
std::vector<SpellCheckResult> local_results;
std::vector<SpellCheckResult> remote_results;
base::string16 remote_suggestion = base::ASCIIToUTF16("remote");
@@ -33,7 +33,8 @@ TEST(SpellcheckMessageFilterMacTest, CombineResults) {
result.replacement = remote_suggestion;
remote_results.push_back(result);
- SpellCheckMessageFilterMac::CombineResults(&remote_results, local_results);
+ SpellCheckMessageFilterPlatform::CombineResults(&remote_results,
+ local_results);
ASSERT_EQ(2U, remote_results.size());
EXPECT_EQ(SpellCheckResult::GRAMMAR, remote_results[0].decoration);
@@ -43,12 +44,12 @@ TEST(SpellcheckMessageFilterMacTest, CombineResults) {
EXPECT_EQ(remote_suggestion, remote_results[1].replacement);
}
-TEST(SpellCheckMessageFilterMacTest, TestOverrideThread) {
+TEST(SpellCheckMessageFilterPlatformMacTest, TestOverrideThread) {
static const uint32 kSpellcheckMessages[] = {
SpellCheckHostMsg_RequestTextCheck::ID,
};
- scoped_refptr<SpellCheckMessageFilterMac> filter(
- new SpellCheckMessageFilterMac(0));
+ scoped_refptr<SpellCheckMessageFilterPlatform> filter(
+ new SpellCheckMessageFilterPlatform(0));
content::BrowserThread::ID thread;
IPC::Message message;
for (size_t i = 0; i < arraysize(kSpellcheckMessages); ++i) {

Powered by Google App Engine
This is Rietveld 408576698