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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc

Issue 1066453002: Refactor CryptAuth component to be more testable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cryptauth_securemessage
Patch Set: rename tests Created 5 years, 8 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: components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc b/components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc
index 570075656674d1294236b7c71387fcf3fc90a950..acefa12eca922a3f11419aeedc4748cdd61d4b41 100644
--- a/components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc
@@ -17,18 +17,19 @@ const char kHttpStatusErrorPrefix[] = "HTTP status: ";
} // namespace
-CryptAuthApiCallFlow::CryptAuthApiCallFlow(const GURL& request_url)
- : request_url_(request_url) {
+CryptAuthApiCallFlow::CryptAuthApiCallFlow() {
}
CryptAuthApiCallFlow::~CryptAuthApiCallFlow() {
}
-void CryptAuthApiCallFlow::Start(net::URLRequestContextGetter* context,
+void CryptAuthApiCallFlow::Start(const GURL& request_url,
+ net::URLRequestContextGetter* context,
const std::string& access_token,
const std::string& serialized_request,
const ResultCallback& result_callback,
const ErrorCallback& error_callback) {
+ request_url_ = request_url;
serialized_request_ = serialized_request;
result_callback_ = result_callback;
error_callback_ = error_callback;

Powered by Google App Engine
This is Rietveld 408576698