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

Side by Side 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 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/mock_webframe.h ('k') | webkit/glue/multipart_response_delegate.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_GLUE_MOCK_WEBURLLOADER_IMPL_H_
6 #define WEBKIT_GLUE_MOCK_WEBURLLOADER_IMPL_H_
7
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "webkit/glue/weburlloader_impl.h"
10
11 namespace webkit_glue {
12
13 class MockWebURLLoader : public WebKit::WebURLLoader {
14 public:
15 MockWebURLLoader() {
16 }
17
18 virtual ~MockWebURLLoader() {
19 }
20
21 MOCK_METHOD4(loadSynchronously, void(const WebKit::WebURLRequest& request,
22 WebKit::WebURLResponse& response,
23 WebKit::WebURLError& error,
24 WebKit::WebData& data));
25 MOCK_METHOD2(loadAsynchronously, void(const WebKit::WebURLRequest& request,
26 WebKit::WebURLLoaderClient* client));
27 MOCK_METHOD0(cancel, void());
28 MOCK_METHOD1(setDefersLoading, void(bool value));
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockWebURLLoader);
32 };
33
34 } // namespace webkit_glue
35
36 #endif // WEBKIT_GLUE_MOCK_WEBURLLOADER_IMPL_H_
OLDNEW
« 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