| 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 #include "webkit/glue/webkit_glue.h" | 5 #include "webkit/glue/webkit_glue.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // WebKitPlatformSupportImpl implementation | 23 // WebKitPlatformSupportImpl implementation |
| 24 virtual base::string16 GetLocalizedString(int) OVERRIDE { | 24 virtual base::string16 GetLocalizedString(int) OVERRIDE { |
| 25 return base::string16(); | 25 return base::string16(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 virtual base::StringPiece GetDataResource(int, ui::ScaleFactor) OVERRIDE { | 28 virtual base::StringPiece GetDataResource(int, ui::ScaleFactor) OVERRIDE { |
| 29 return base::StringPiece(); | 29 return base::StringPiece(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 virtual void GetPlugins(bool, | |
| 33 std::vector<webkit::WebPluginInfo, | |
| 34 std::allocator<webkit::WebPluginInfo> >*) OVERRIDE { | |
| 35 } | |
| 36 | |
| 37 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( | 32 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( |
| 38 const webkit_glue::ResourceLoaderBridge::RequestInfo&) OVERRIDE { | 33 const webkit_glue::ResourceLoaderBridge::RequestInfo&) OVERRIDE { |
| 39 return NULL; | 34 return NULL; |
| 40 } | 35 } |
| 41 | 36 |
| 42 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( | 37 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( |
| 43 WebKit::WebSocketStreamHandle*, | 38 WebKit::WebSocketStreamHandle*, |
| 44 webkit_glue::WebSocketStreamHandleDelegate*) OVERRIDE { | 39 webkit_glue::WebSocketStreamHandleDelegate*) OVERRIDE { |
| 45 return NULL; | 40 return NULL; |
| 46 } | 41 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Set a mock time after 1 second to simulate timers suspended for 1 second. | 79 // Set a mock time after 1 second to simulate timers suspended for 1 second. |
| 85 double new_time = base::Time::Now().ToDoubleT() + 1; | 80 double new_time = base::Time::Now().ToDoubleT() + 1; |
| 86 platform_support.set_mock_monotonically_increasing_time(new_time); | 81 platform_support.set_mock_monotonically_increasing_time(new_time); |
| 87 // Resume timers so that the timer set above will be set again to fire | 82 // Resume timers so that the timer set above will be set again to fire |
| 88 // immediately. | 83 // immediately. |
| 89 platform_support.ResumeSharedTimer(); | 84 platform_support.ResumeSharedTimer(); |
| 90 EXPECT_TRUE(base::TimeDelta() == platform_support.shared_timer_delay()); | 85 EXPECT_TRUE(base::TimeDelta() == platform_support.shared_timer_delay()); |
| 91 } | 86 } |
| 92 | 87 |
| 93 } // namespace | 88 } // namespace |
| OLD | NEW |