OLD | NEW |
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 Loading... |
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 |
OLD | NEW |