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

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

Issue 14304004: Convert a bunch of test_shell_tests to content_browsertests. These are tests that depend on loading… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppapi_unittest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_MOCKS_MOCK_RESOURCE_LOADER_BRIDGE_H_
6 #define WEBKIT_MOCKS_MOCK_RESOURCE_LOADER_BRIDGE_H_
7
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "webkit/glue/resource_loader_bridge.h"
10
11 namespace base {
12 class FilePath;
13 }
14
15 namespace webkit_glue {
16
17 class MockResourceLoaderBridge : public webkit_glue::ResourceLoaderBridge {
18 public:
19 MockResourceLoaderBridge() {
20 }
21
22 virtual ~MockResourceLoaderBridge() {
23 OnDestroy();
24 }
25
26 MOCK_METHOD2(AppendDataToUpload, void(const char* data, int data_len));
27 MOCK_METHOD4(AppendFileRangeToUpload,
28 void(const base::FilePath& file_path,
29 uint64 offset,
30 uint64 length,
31 const base::Time& expected_modification_time));
32 MOCK_METHOD1(AppendBlobToUpload, void(const GURL& blob_url));
33 MOCK_METHOD1(SetUploadIdentifier, void(int64 identifier));
34 MOCK_METHOD1(Start, bool(ResourceLoaderBridge::Peer* peer));
35 MOCK_METHOD0(Cancel, void());
36 MOCK_METHOD1(SetDefersLoading, void(bool value));
37 MOCK_METHOD1(SyncLoad, void(SyncLoadResponse* response));
38 MOCK_METHOD0(OnDestroy, void());
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockResourceLoaderBridge);
42 };
43
44 } // namespace webkit_glue
45
46 #endif // WEBKIT_MOCKS_MOCK_RESOURCE_LOADER_BRIDGE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppapi_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698