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

Side by Side Diff: content/shell/renderer/test_runner/MockSpellCheck.cpp

Issue 263823011: test_runner: Move more Mock* files into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "content/shell/renderer/test_runner/MockSpellCheck.h" 5 #include "content/shell/renderer/test_runner/MockSpellCheck.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/shell/renderer/test_runner/TestCommon.h" 8 #include "content/shell/renderer/test_runner/TestCommon.h"
9 #include "third_party/WebKit/public/platform/WebCString.h" 9 #include "third_party/WebKit/public/platform/WebCString.h"
10 10
11 using namespace WebTestRunner;
11 using namespace blink; 12 using namespace blink;
12 using namespace std; 13 using namespace std;
13 14
14 namespace WebTestRunner { 15 namespace content {
15 16
16 namespace { 17 namespace {
17 18
18 void append(WebVector<WebString>* data, const WebString& item) 19 void append(WebVector<WebString>* data, const WebString& item)
19 { 20 {
20 WebVector<WebString> result(data->size() + 1); 21 WebVector<WebString> result(data->size() + 1);
21 for (size_t i = 0; i < data->size(); ++i) 22 for (size_t i = 0; i < data->size(); ++i)
22 result[i] = (*data)[i]; 23 result[i] = (*data)[i];
23 result[data->size()] = item; 24 result[data->size()] = item;
24 data->swap(result); 25 data->swap(result);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 176
176 // Mark as initialized to prevent this object from being initialized twice 177 // Mark as initialized to prevent this object from being initialized twice
177 // or more. 178 // or more.
178 m_initialized = true; 179 m_initialized = true;
179 180
180 // Since this MockSpellCheck class doesn't download dictionaries, this 181 // Since this MockSpellCheck class doesn't download dictionaries, this
181 // function always returns false. 182 // function always returns false.
182 return false; 183 return false;
183 } 184 }
184 185
185 } 186 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/MockSpellCheck.h ('k') | content/shell/renderer/test_runner/MockWebAudioDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698