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

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

Issue 2177343002: Componentize spellcheck [2]: move common/ files to component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move message generator to component Created 4 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
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 <tuple> 5 #include <tuple>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/common/spellcheck_marker.h"
10 #include "chrome/common/spellcheck_messages.h"
11 #include "chrome/common/spellcheck_result.h"
12 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h" 9 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h"
10 #include "components/spellcheck/common/spellcheck_marker.h"
11 #include "components/spellcheck/common/spellcheck_messages.h"
12 #include "components/spellcheck/common/spellcheck_result.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/public/platform/WebString.h" 14 #include "third_party/WebKit/public/platform/WebString.h"
15 15
16 namespace { 16 namespace {
17 17
18 class SpellCheckProviderMacTest : public SpellCheckProviderTest {}; 18 class SpellCheckProviderMacTest : public SpellCheckProviderTest {};
19 19
20 void FakeMessageArrival( 20 void FakeMessageArrival(
21 SpellCheckProvider* provider, 21 SpellCheckProvider* provider,
22 const SpellCheckHostMsg_RequestTextCheck::Param& parameters) { 22 const SpellCheckHostMsg_RequestTextCheck::Param& parameters) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 EXPECT_EQ(completion2.completion_count_, 0U); 83 EXPECT_EQ(completion2.completion_count_, 0U);
84 EXPECT_EQ(provider_.pending_text_request_size(), 1U); 84 EXPECT_EQ(provider_.pending_text_request_size(), 1U);
85 85
86 FakeMessageArrival(&provider_, read_parameters2); 86 FakeMessageArrival(&provider_, read_parameters2);
87 EXPECT_EQ(completion1.completion_count_, 1U); 87 EXPECT_EQ(completion1.completion_count_, 1U);
88 EXPECT_EQ(completion2.completion_count_, 1U); 88 EXPECT_EQ(completion2.completion_count_, 1U);
89 EXPECT_EQ(provider_.pending_text_request_size(), 0U); 89 EXPECT_EQ(provider_.pending_text_request_size(), 0U);
90 } 90 }
91 91
92 } // namespace 92 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698