OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 | 186 |
187 ~TestEnvironment() { | 187 ~TestEnvironment() { |
188 SimpleResourceLoaderBridge::Shutdown(); | 188 SimpleResourceLoaderBridge::Shutdown(); |
189 } | 189 } |
190 | 190 |
191 void Reset() { | 191 void Reset() { |
192 #if defined(OS_ANDROID) | 192 #if defined(OS_ANDROID) |
193 media_player_manager_->ReleaseMediaResources(); | 193 media_player_manager_->ReleaseMediaResources(); |
194 #endif | 194 #endif |
195 WebKit::setIDBFactory(webkit_platform_support_->idbFactory()); | 195 webkit_platform_support_->ResetIDBFactory(); |
| 196 // TODO(darin): Uncomment this once DRT calls ResetTestEnvironment(). |
| 197 //WebKit::setIDBFactory(webkit_platform_support_->idbFactory()); |
196 } | 198 } |
197 | 199 |
198 TestWebKitPlatformSupport* webkit_platform_support() const { | 200 TestWebKitPlatformSupport* webkit_platform_support() const { |
199 return webkit_platform_support_.get(); | 201 return webkit_platform_support_.get(); |
200 } | 202 } |
201 | 203 |
202 #if defined(OS_WIN) || defined(OS_MACOSX) | 204 #if defined(OS_WIN) || defined(OS_MACOSX) |
203 void set_theme_engine(WebKit::WebThemeEngine* engine) { | 205 void set_theme_engine(WebKit::WebThemeEngine* engine) { |
204 DCHECK(webkit_platform_support_ != 0); | 206 DCHECK(webkit_platform_support_ != 0); |
205 webkit_platform_support_->SetThemeEngine(engine); | 207 webkit_platform_support_->SetThemeEngine(engine); |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 // Logging | 892 // Logging |
891 void EnableWebCoreLogChannels(const std::string& channels) { | 893 void EnableWebCoreLogChannels(const std::string& channels) { |
892 webkit_glue::EnableWebCoreLogChannels(channels); | 894 webkit_glue::EnableWebCoreLogChannels(channels); |
893 } | 895 } |
894 | 896 |
895 void SetGamepadData(const WebKit::WebGamepads& pads) { | 897 void SetGamepadData(const WebKit::WebGamepads& pads) { |
896 test_environment->webkit_platform_support()->setGamepadData(pads); | 898 test_environment->webkit_platform_support()->setGamepadData(pads); |
897 } | 899 } |
898 | 900 |
899 } // namespace webkit_support | 901 } // namespace webkit_support |
OLD | NEW |