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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc

Issue 1466733002: Google OAuth Device Flow support for FNL (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: updated demo namespaces Created 5 years 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: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
index 9bf7aa2c2978f707555d63377afbdecca220d3a7..cb684a9f33d8c0838b63874058aa37afb52bded4 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
@@ -102,11 +102,23 @@ class MockAuthenticationService : public authentication::AuthenticationService {
}
callback.Run(kCachedToken, nullptr);
}
+
void ClearOAuth2Token(const mojo::String& token) override {
num_clear_token_calls_++;
use_fresh_token_ = true;
}
+ void GetOAuth2DeviceCode(
+ mojo::Array<mojo::String> scopes,
+ const GetOAuth2DeviceCodeCallback& callback) override {
+ callback.Run(nullptr, nullptr, nullptr, "Not implemented");
+ }
+
+ void AddAccount(const mojo::String& device_code,
+ const AddAccountCallback& callback) override {
+ callback.Run(nullptr, "Not implemented");
+ }
+
Binding<authentication::AuthenticationService> binding_;
uint32_t num_select_account_calls_;
uint32_t num_get_token_calls_;

Powered by Google App Engine
This is Rietveld 408576698