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