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

Unified Diff: content/test/mock_webassociatedurlloader.h

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « content/test/BUILD.gn ('k') | content/test/mock_webassociatedurlloader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_webassociatedurlloader.h
diff --git a/content/test/mock_webassociatedurlloader.h b/content/test/mock_webassociatedurlloader.h
new file mode 100644
index 0000000000000000000000000000000000000000..f3ee3e62c734b86fd57f24ec577677a8f7a0c476
--- /dev/null
+++ b/content/test/mock_webassociatedurlloader.h
@@ -0,0 +1,33 @@
+// Copyright 2013 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 CONTENT_TEST_MOCK_WEBASSOCIATEDURLLOADER_H_
+#define CONTENT_TEST_MOCK_WEBASSOCIATEDURLLOADER_H_
+
+#include "base/macros.h"
+#include "testing/gmock/include/gmock/gmock.h"
+#include "third_party/WebKit/public/web/WebAssociatedURLLoader.h"
+
+namespace content {
+
+class MockWebAssociatedURLLoader : public blink::WebAssociatedURLLoader {
+ public:
+ MockWebAssociatedURLLoader();
+ virtual ~MockWebAssociatedURLLoader();
+
+ MOCK_METHOD2(loadAsynchronously,
+ void(const blink::WebURLRequest& request,
+ blink::WebAssociatedURLLoaderClient* client));
+ MOCK_METHOD0(cancel, void());
+ MOCK_METHOD1(setDefersLoading, void(bool value));
+ MOCK_METHOD1(setLoadingTaskRunner,
+ void(blink::WebTaskRunner* loading_task_runner));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockWebAssociatedURLLoader);
+};
+
+} // namespace content
+
+#endif // CONTENT_TEST_MOCK_WEBASSOCIATEDURLLOADER_H_
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/mock_webassociatedurlloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698