| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ | |
| 6 #define WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ | |
| 7 | |
| 8 #include "testing/gmock/include/gmock/gmock.h" | |
| 9 #include "webkit/glue/media/media_resource_loader_bridge_factory.h" | |
| 10 | |
| 11 namespace webkit_glue { | |
| 12 | |
| 13 class MockMediaResourceLoaderBridgeFactory | |
| 14 : public webkit_glue::MediaResourceLoaderBridgeFactory { | |
| 15 public: | |
| 16 MockMediaResourceLoaderBridgeFactory() { | |
| 17 } | |
| 18 | |
| 19 virtual ~MockMediaResourceLoaderBridgeFactory() { | |
| 20 OnDestroy(); | |
| 21 } | |
| 22 | |
| 23 MOCK_METHOD4(CreateBridge, | |
| 24 webkit_glue::ResourceLoaderBridge*(const GURL& url, | |
| 25 int load_flags, | |
| 26 int64 first_byte_position, | |
| 27 int64 last_byte_position)); | |
| 28 MOCK_METHOD0(OnDestroy, void()); | |
| 29 | |
| 30 private: | |
| 31 DISALLOW_COPY_AND_ASSIGN(MockMediaResourceLoaderBridgeFactory); | |
| 32 }; | |
| 33 | |
| 34 } // namespace webkit_glue | |
| 35 | |
| 36 #endif // WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ | |
| OLD | NEW |