| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 void UnregisterAllMockedURLs() { | 480 void UnregisterAllMockedURLs() { |
| 481 test_environment->webkit_platform_support()->url_loader_factory()-> | 481 test_environment->webkit_platform_support()->url_loader_factory()-> |
| 482 UnregisterAllURLs(); | 482 UnregisterAllURLs(); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void ServeAsynchronousMockedRequests() { | 485 void ServeAsynchronousMockedRequests() { |
| 486 test_environment->webkit_platform_support()->url_loader_factory()-> | 486 test_environment->webkit_platform_support()->url_loader_factory()-> |
| 487 ServeAsynchronousRequests(); | 487 ServeAsynchronousRequests(); |
| 488 } | 488 } |
| 489 | 489 |
| 490 WebKit::WebURLRequest GetLastHandledAsynchronousMockedRequest() { |
| 491 return test_environment->webkit_platform_support()->url_loader_factory()-> |
| 492 GetLastHandledAsynchronousRequest(); |
| 493 } |
| 494 |
| 490 // Wrapper for debug_util | 495 // Wrapper for debug_util |
| 491 bool BeingDebugged() { | 496 bool BeingDebugged() { |
| 492 return base::debug::BeingDebugged(); | 497 return base::debug::BeingDebugged(); |
| 493 } | 498 } |
| 494 | 499 |
| 495 // Wrappers for MessageLoop | 500 // Wrappers for MessageLoop |
| 496 | 501 |
| 497 void RunMessageLoop() { | 502 void RunMessageLoop() { |
| 498 MessageLoop::current()->Run(); | 503 MessageLoop::current()->Run(); |
| 499 } | 504 } |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 // Logging | 809 // Logging |
| 805 void EnableWebCoreLogChannels(const std::string& channels) { | 810 void EnableWebCoreLogChannels(const std::string& channels) { |
| 806 webkit_glue::EnableWebCoreLogChannels(channels); | 811 webkit_glue::EnableWebCoreLogChannels(channels); |
| 807 } | 812 } |
| 808 | 813 |
| 809 void SetGamepadData(const WebKit::WebGamepads& pads) { | 814 void SetGamepadData(const WebKit::WebGamepads& pads) { |
| 810 test_environment->webkit_platform_support()->setGamepadData(pads); | 815 test_environment->webkit_platform_support()->setGamepadData(pads); |
| 811 } | 816 } |
| 812 | 817 |
| 813 } // namespace webkit_support | 818 } // namespace webkit_support |
| OLD | NEW |