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

Unified Diff: chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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: chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc
diff --git a/chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc b/chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc
index 0ec365e98168ea0b16e00204c7267756579f60fd..f4e9c0b3d46c555cf1b5d4db6fc7681a8d668eaf 100644
--- a/chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc
+++ b/chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc
@@ -40,7 +40,7 @@ class TestOAuth2TokenService : public OAuth2TokenService {
: request_context_(request_context) {
}
protected:
- virtual std::string GetRefreshToken() OVERRIDE {
+ virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE {
return "SampleToken";
}
@@ -88,6 +88,7 @@ class PrivetConfirmApiFlowTest : public testing::Test {
TEST_F(PrivetConfirmApiFlowTest, Success) {
PrivetConfirmApiCallFlow confirm_flow(request_context_.get(),
&token_service_,
+ std::string(),
GURL("http://SoMeUrL.com"),
callback_.callback());
@@ -118,6 +119,7 @@ TEST_F(PrivetConfirmApiFlowTest, Success) {
TEST_F(PrivetConfirmApiFlowTest, BadToken) {
PrivetConfirmApiCallFlow confirm_flow(request_context_.get(),
&token_service_,
+ std::string(),
GURL("http://SoMeUrL.com"),
callback_.callback());
@@ -130,6 +132,7 @@ TEST_F(PrivetConfirmApiFlowTest, BadToken) {
TEST_F(PrivetConfirmApiFlowTest, ServerFailure) {
PrivetConfirmApiCallFlow confirm_flow(request_context_.get(),
&token_service_,
+ std::string(),
GURL("http://SoMeUrL.com"),
callback_.callback());
@@ -152,6 +155,7 @@ TEST_F(PrivetConfirmApiFlowTest, ServerFailure) {
TEST_F(PrivetConfirmApiFlowTest, BadJson) {
PrivetConfirmApiCallFlow confirm_flow(request_context_.get(),
&token_service_,
+ std::string(),
GURL("http://SoMeUrL.com"),
callback_.callback());

Powered by Google App Engine
This is Rietveld 408576698