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

Unified Diff: webkit/glue/mock_weburlloader_impl.h

Issue 3863002: Refactoring BufferedDataSource to work with WebURLLoader instead of a MediaResourceLoaderBridge. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: little indent Created 10 years, 1 month 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/mock_webframe.h ('k') | webkit/glue/multipart_response_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/mock_weburlloader_impl.h
diff --git a/webkit/glue/mock_weburlloader_impl.h b/webkit/glue/mock_weburlloader_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..da50b72a81411f3d1f0bf609fc83274a6403b486
--- /dev/null
+++ b/webkit/glue/mock_weburlloader_impl.h
@@ -0,0 +1,36 @@
+// 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_GLUE_MOCK_WEBURLLOADER_IMPL_H_
+#define WEBKIT_GLUE_MOCK_WEBURLLOADER_IMPL_H_
+
+#include "testing/gmock/include/gmock/gmock.h"
+#include "webkit/glue/weburlloader_impl.h"
+
+namespace webkit_glue {
+
+class MockWebURLLoader : public WebKit::WebURLLoader {
+ public:
+ MockWebURLLoader() {
+ }
+
+ virtual ~MockWebURLLoader() {
+ }
+
+ MOCK_METHOD4(loadSynchronously, void(const WebKit::WebURLRequest& request,
+ WebKit::WebURLResponse& response,
+ WebKit::WebURLError& error,
+ WebKit::WebData& data));
+ MOCK_METHOD2(loadAsynchronously, void(const WebKit::WebURLRequest& request,
+ WebKit::WebURLLoaderClient* client));
+ MOCK_METHOD0(cancel, void());
+ MOCK_METHOD1(setDefersLoading, void(bool value));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockWebURLLoader);
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_GLUE_MOCK_WEBURLLOADER_IMPL_H_
« no previous file with comments | « webkit/glue/mock_webframe.h ('k') | webkit/glue/multipart_response_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698