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

Side by Side Diff: components/spellcheck/renderer/spellcheck_provider_test.cc

Issue 2198143002: Componentize spellcheck [3]: move renderer/ files to component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix formatting 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 "chrome/renderer/spellchecker/spellcheck_provider_test.h" 5 #include "components/spellcheck/renderer/spellcheck_provider_test.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "chrome/renderer/spellchecker/spellcheck.h"
9 #include "components/spellcheck/common/spellcheck_marker.h" 8 #include "components/spellcheck/common/spellcheck_marker.h"
10 #include "components/spellcheck/common/spellcheck_messages.h" 9 #include "components/spellcheck/common/spellcheck_messages.h"
10 #include "components/spellcheck/renderer/spellcheck.h"
11 #include "components/test_runner/test_common.h"
11 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
12 13
13 class MockSpellcheck: public SpellCheck { 14 class MockSpellcheck: public SpellCheck {
14 }; 15 };
15 16
16 FakeTextCheckingCompletion::FakeTextCheckingCompletion() 17 FakeTextCheckingCompletion::FakeTextCheckingCompletion()
17 : completion_count_(0), 18 : completion_count_(0),
18 cancellation_count_(0) { 19 cancellation_count_(0) {
19 } 20 }
20 21
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 completion->didFinishCheckingText(results); 89 completion->didFinishCheckingText(results);
89 last_request_ = text; 90 last_request_ = text;
90 last_results_ = results; 91 last_results_ = results;
91 #endif 92 #endif
92 } 93 }
93 94
94 void TestingSpellCheckProvider::ResetResult() { 95 void TestingSpellCheckProvider::ResetResult() {
95 text_.clear(); 96 text_.clear();
96 } 97 }
97 98
98 SpellCheckProviderTest::SpellCheckProviderTest() {} 99 SpellCheckProviderTest::SpellCheckProviderTest() {
100 test_runner::EnsureBlinkInitialized();
groby-ooo-7-16 2016/08/03 17:31:54 Same question - technically, all the tests should
timvolodine 2016/08/03 19:12:30 see previous answer
101 }
99 SpellCheckProviderTest::~SpellCheckProviderTest() {} 102 SpellCheckProviderTest::~SpellCheckProviderTest() {}
100 103
101
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698