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

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: . 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 unified diff | Download patch | Annotate | Revision Log
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 OnURLDestroy();
20 }
21
22 MOCK_METHOD4(loadSynchronously, void(const WebKit::WebURLRequest& request,
23 WebKit::WebURLResponse& response,
24 WebKit::WebURLError& error,
25 WebKit::WebData& data));
26 MOCK_METHOD2(loadAsynchronously, void(const WebKit::WebURLRequest& request,
27 WebKit::WebURLLoaderClient* client));
28 MOCK_METHOD0(cancel, void());
29 MOCK_METHOD1(setDefersLoading, void(bool value));
30 MOCK_METHOD0(OnURLDestroy, void());
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(MockWebURLLoader);
34 };
35
36 } // namespace webkit_glue
37
38 #endif // WEBKIT_GLUE_MOCK_WEBURLLOADER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698