| 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 "components/test_runner/mock_spell_check.h" | 5 #include "components/test_runner/mock_spell_check.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 10 #include "components/test_runner/test_common.h" | 13 #include "components/test_runner/test_common.h" |
| 11 #include "third_party/WebKit/public/platform/WebCString.h" | 14 #include "third_party/WebKit/public/platform/WebCString.h" |
| 12 | 15 |
| 13 namespace test_runner { | 16 namespace test_runner { |
| 14 | 17 |
| 15 namespace { | 18 namespace { |
| 16 | 19 |
| 17 void Append(blink::WebVector<blink::WebString>* data, | 20 void Append(blink::WebVector<blink::WebString>* data, |
| 18 const blink::WebString& item) { | 21 const blink::WebString& item) { |
| 19 blink::WebVector<blink::WebString> result(data->size() + 1); | 22 blink::WebVector<blink::WebString> result(data->size() + 1); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // Mark as initialized to prevent this object from being initialized twice | 170 // Mark as initialized to prevent this object from being initialized twice |
| 168 // or more. | 171 // or more. |
| 169 initialized_ = true; | 172 initialized_ = true; |
| 170 | 173 |
| 171 // Since this MockSpellCheck class doesn't download dictionaries, this | 174 // Since this MockSpellCheck class doesn't download dictionaries, this |
| 172 // function always returns false. | 175 // function always returns false. |
| 173 return false; | 176 return false; |
| 174 } | 177 } |
| 175 | 178 |
| 176 } // namespace test_runner | 179 } // namespace test_runner |
| OLD | NEW |