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

Unified Diff: chrome/browser/policy/testing_policy_url_fetcher_factory.h

Issue 7524033: Add a scoper object for URLFetcher::Factory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 5 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
Index: chrome/browser/policy/testing_policy_url_fetcher_factory.h
diff --git a/chrome/browser/policy/testing_policy_url_fetcher_factory.h b/chrome/browser/policy/testing_policy_url_fetcher_factory.h
index 328cd3e7b27ca1ab2fb334d2968c9a4e3a599334..2c27145793b08226aae9caf799022c6f2f0de8fd 100644
--- a/chrome/browser/policy/testing_policy_url_fetcher_factory.h
+++ b/chrome/browser/policy/testing_policy_url_fetcher_factory.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/policy/logging_work_scheduler.h"
#include "content/common/url_fetcher.h"
+#include "content/test/test_url_fetcher_factory.h"
#include "googleurl/src/gurl.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -25,9 +26,9 @@ struct TestURLResponse {
};
// Creates mock URLFetchers whose behavior can be controlled in tests. To do so
-// specify this factory with URLFetcher::set_factory, and set mock expectations
-// on the method |Intercept|.
-class TestingPolicyURLFetcherFactory : public URLFetcher::Factory {
+// set mock expectations on the method |Intercept|.
+class TestingPolicyURLFetcherFactory : public URLFetcher::Factory,
+ public ScopedURLFetcherFactory {
public:
explicit TestingPolicyURLFetcherFactory(EventLogger* logger);
virtual ~TestingPolicyURLFetcherFactory();

Powered by Google App Engine
This is Rietveld 408576698