| 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 #ifndef CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 5 #ifndef CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| 6 #define CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 6 #define CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "cc/blink/web_compositor_support_impl.h" | 10 #include "cc/blink/web_compositor_support_impl.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 TestBlinkWebUnitTestSupport(); | 34 TestBlinkWebUnitTestSupport(); |
| 35 virtual ~TestBlinkWebUnitTestSupport(); | 35 virtual ~TestBlinkWebUnitTestSupport(); |
| 36 | 36 |
| 37 virtual blink::WebBlobRegistry* blobRegistry(); | 37 virtual blink::WebBlobRegistry* blobRegistry(); |
| 38 virtual blink::WebClipboard* clipboard(); | 38 virtual blink::WebClipboard* clipboard(); |
| 39 virtual blink::WebFileUtilities* fileUtilities(); | 39 virtual blink::WebFileUtilities* fileUtilities(); |
| 40 virtual blink::WebIDBFactory* idbFactory(); | 40 virtual blink::WebIDBFactory* idbFactory(); |
| 41 virtual blink::WebMimeRegistry* mimeRegistry(); | 41 virtual blink::WebMimeRegistry* mimeRegistry(); |
| 42 | 42 |
| 43 virtual blink::WebURLLoader* createURLLoader(); | 43 virtual blink::WebURLLoader* createURLLoader(); |
| 44 virtual blink::WebString userAgent() OVERRIDE; | 44 virtual blink::WebString userAgent() override; |
| 45 virtual blink::WebData loadResource(const char* name); | 45 virtual blink::WebData loadResource(const char* name); |
| 46 virtual blink::WebString queryLocalizedString( | 46 virtual blink::WebString queryLocalizedString( |
| 47 blink::WebLocalizedString::Name name); | 47 blink::WebLocalizedString::Name name); |
| 48 virtual blink::WebString queryLocalizedString( | 48 virtual blink::WebString queryLocalizedString( |
| 49 blink::WebLocalizedString::Name name, | 49 blink::WebLocalizedString::Name name, |
| 50 const blink::WebString& value); | 50 const blink::WebString& value); |
| 51 virtual blink::WebString queryLocalizedString( | 51 virtual blink::WebString queryLocalizedString( |
| 52 blink::WebLocalizedString::Name name, | 52 blink::WebLocalizedString::Name name, |
| 53 const blink::WebString& value1, | 53 const blink::WebString& value1, |
| 54 const blink::WebString& value2); | 54 const blink::WebString& value2); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 65 return url_loader_factory_.get(); | 65 return url_loader_factory_.get(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 const base::FilePath& file_system_root() const { | 68 const base::FilePath& file_system_root() const { |
| 69 return file_system_root_.path(); | 69 return file_system_root_.path(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 virtual blink::WebGestureCurve* createFlingAnimationCurve( | 72 virtual blink::WebGestureCurve* createFlingAnimationCurve( |
| 73 blink::WebGestureDevice device_source, | 73 blink::WebGestureDevice device_source, |
| 74 const blink::WebFloatPoint& velocity, | 74 const blink::WebFloatPoint& velocity, |
| 75 const blink::WebSize& cumulative_scroll) OVERRIDE; | 75 const blink::WebSize& cumulative_scroll) override; |
| 76 | 76 |
| 77 virtual blink::WebUnitTestSupport* unitTestSupport(); | 77 virtual blink::WebUnitTestSupport* unitTestSupport(); |
| 78 | 78 |
| 79 // WebUnitTestSupport implementation | 79 // WebUnitTestSupport implementation |
| 80 virtual void registerMockedURL(const blink::WebURL& url, | 80 virtual void registerMockedURL(const blink::WebURL& url, |
| 81 const blink::WebURLResponse& response, | 81 const blink::WebURLResponse& response, |
| 82 const blink::WebString& filePath); | 82 const blink::WebString& filePath); |
| 83 virtual void registerMockedErrorURL(const blink::WebURL& url, | 83 virtual void registerMockedErrorURL(const blink::WebURL& url, |
| 84 const blink::WebURLResponse& response, | 84 const blink::WebURLResponse& response, |
| 85 const blink::WebURLError& error); | 85 const blink::WebURLError& error); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 102 | 102 |
| 103 #if defined(OS_WIN) || defined(OS_MACOSX) | 103 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 104 blink::WebThemeEngine* active_theme_engine_; | 104 blink::WebThemeEngine* active_theme_engine_; |
| 105 #endif | 105 #endif |
| 106 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); | 106 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace content | 109 } // namespace content |
| 110 | 110 |
| 111 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 111 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| OLD | NEW |