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

Side by Side Diff: components/test_runner/mock_spell_check.cc

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/shell/renderer/test_runner/mock_spell_check.h" 5 #include "components/test_runner/mock_spell_check.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/shell/renderer/test_runner/test_common.h" 8 #include "components/test_runner/test_common.h"
9 #include "third_party/WebKit/public/platform/WebCString.h" 9 #include "third_party/WebKit/public/platform/WebCString.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 namespace { 13 namespace {
14 14
15 void Append(blink::WebVector<blink::WebString>* data, 15 void Append(blink::WebVector<blink::WebString>* data,
16 const blink::WebString& item) { 16 const blink::WebString& item) {
17 blink::WebVector<blink::WebString> result(data->size() + 1); 17 blink::WebVector<blink::WebString> result(data->size() + 1);
18 for (size_t i = 0; i < data->size(); ++i) 18 for (size_t i = 0; i < data->size(); ++i)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Mark as initialized to prevent this object from being initialized twice 165 // Mark as initialized to prevent this object from being initialized twice
166 // or more. 166 // or more.
167 initialized_ = true; 167 initialized_ = true;
168 168
169 // Since this MockSpellCheck class doesn't download dictionaries, this 169 // Since this MockSpellCheck class doesn't download dictionaries, this
170 // function always returns false. 170 // function always returns false.
171 return false; 171 return false;
172 } 172 }
173 173
174 } // namespace content 174 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/mock_spell_check.h ('k') | components/test_runner/mock_web_audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698