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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppapi_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/mocks/mock_resource_loader_bridge.h
===================================================================
--- webkit/mocks/mock_resource_loader_bridge.h (revision 195684)
+++ webkit/mocks/mock_resource_loader_bridge.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_MOCKS_MOCK_RESOURCE_LOADER_BRIDGE_H_
-#define WEBKIT_MOCKS_MOCK_RESOURCE_LOADER_BRIDGE_H_
-
-#include "testing/gmock/include/gmock/gmock.h"
-#include "webkit/glue/resource_loader_bridge.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace webkit_glue {
-
-class MockResourceLoaderBridge : public webkit_glue::ResourceLoaderBridge {
- public:
- MockResourceLoaderBridge() {
- }
-
- virtual ~MockResourceLoaderBridge() {
- OnDestroy();
- }
-
- MOCK_METHOD2(AppendDataToUpload, void(const char* data, int data_len));
- MOCK_METHOD4(AppendFileRangeToUpload,
- void(const base::FilePath& file_path,
- uint64 offset,
- uint64 length,
- const base::Time& expected_modification_time));
- MOCK_METHOD1(AppendBlobToUpload, void(const GURL& blob_url));
- MOCK_METHOD1(SetUploadIdentifier, void(int64 identifier));
- MOCK_METHOD1(Start, bool(ResourceLoaderBridge::Peer* peer));
- MOCK_METHOD0(Cancel, void());
- MOCK_METHOD1(SetDefersLoading, void(bool value));
- MOCK_METHOD1(SyncLoad, void(SyncLoadResponse* response));
- MOCK_METHOD0(OnDestroy, void());
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockResourceLoaderBridge);
-};
-
-} // namespace webkit_glue
-
-#endif // WEBKIT_MOCKS_MOCK_RESOURCE_LOADER_BRIDGE_H_
« 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