Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: webkit/glue/mock_resource_loader_bridge.h

Issue 594036: Support sending a sliced file in chromium.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/glue_serialize_unittest.cc ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ 5 #ifndef WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_
6 #define WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ 6 #define WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "webkit/glue/resource_loader_bridge.h" 10 #include "webkit/glue/resource_loader_bridge.h"
11 11
12 namespace webkit_glue { 12 namespace webkit_glue {
13 13
14 class MockResourceLoaderBridge : public webkit_glue::ResourceLoaderBridge { 14 class MockResourceLoaderBridge : public webkit_glue::ResourceLoaderBridge {
15 public: 15 public:
16 MockResourceLoaderBridge() { 16 MockResourceLoaderBridge() {
17 } 17 }
18 18
19 virtual ~MockResourceLoaderBridge() { 19 virtual ~MockResourceLoaderBridge() {
20 OnDestroy(); 20 OnDestroy();
21 } 21 }
22 22
23 MOCK_METHOD2(AppendDataToUpload, void(const char* data, int data_len)); 23 MOCK_METHOD2(AppendDataToUpload, void(const char* data, int data_len));
24 MOCK_METHOD3(AppendFileRangeToUpload, void(const FilePath& file_path, 24 MOCK_METHOD4(AppendFileRangeToUpload,
25 uint64 offset, 25 void(const FilePath& file_path,
26 uint64 length)); 26 uint64 offset,
27 uint64 length,
28 const base::Time& expected_modification_time));
27 MOCK_METHOD1(SetUploadIdentifier, void(int64 identifier)); 29 MOCK_METHOD1(SetUploadIdentifier, void(int64 identifier));
28 MOCK_METHOD1(Start, bool(ResourceLoaderBridge::Peer* peer)); 30 MOCK_METHOD1(Start, bool(ResourceLoaderBridge::Peer* peer));
29 MOCK_METHOD0(Cancel, void()); 31 MOCK_METHOD0(Cancel, void());
30 MOCK_METHOD1(SetDefersLoading, void(bool value)); 32 MOCK_METHOD1(SetDefersLoading, void(bool value));
31 MOCK_METHOD1(SyncLoad, void(SyncLoadResponse* response)); 33 MOCK_METHOD1(SyncLoad, void(SyncLoadResponse* response));
32 MOCK_METHOD0(OnDestroy, void()); 34 MOCK_METHOD0(OnDestroy, void());
33 35
34 private: 36 private:
35 DISALLOW_COPY_AND_ASSIGN(MockResourceLoaderBridge); 37 DISALLOW_COPY_AND_ASSIGN(MockResourceLoaderBridge);
36 }; 38 };
37 39
38 } // namespace webkit_glue 40 } // namespace webkit_glue
39 41
40 #endif // WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ 42 #endif // WEBKIT_GLUE_MEDIA_MOCK_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_
OLDNEW
« no previous file with comments | « webkit/glue/glue_serialize_unittest.cc ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698