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

Unified Diff: remoting/host/token_validator_factory_impl_unittest.cc

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Lots of fixes driven by try jobs. Created 5 years, 4 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: remoting/host/token_validator_factory_impl_unittest.cc
diff --git a/remoting/host/token_validator_factory_impl_unittest.cc b/remoting/host/token_validator_factory_impl_unittest.cc
index ef5aaf52db15b9917dce34969ea973e1e55107e8..8e3465a2575b30f915f6c8f566981a59dbcfed6a 100644
--- a/remoting/host/token_validator_factory_impl_unittest.cc
+++ b/remoting/host/token_validator_factory_impl_unittest.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/json/json_writer.h"
+#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_request_job_factory.h"
@@ -55,11 +56,11 @@ class FakeProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
class SetResponseURLRequestContext: public net::TestURLRequestContext {
public:
void SetResponse(const std::string& headers, const std::string& response) {
- net::URLRequestJobFactoryImpl* factory =
- new net::URLRequestJobFactoryImpl();
+ scoped_ptr<net::URLRequestJobFactoryImpl> factory =
+ make_scoped_ptr(new net::URLRequestJobFactoryImpl());
factory->SetProtocolHandler(
"https", new FakeProtocolHandler(headers, response));
- context_storage_.set_job_factory(factory);
+ context_storage_.set_job_factory(factory.Pass());
}
};

Powered by Google App Engine
This is Rietveld 408576698