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

Unified Diff: chrome/browser/google_apis/dummy_auth_service.cc

Issue 19511002: Change google_api::RequestSender to take an AuthService instead of a Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/google_apis/dummy_auth_service.cc
diff --git a/chrome/browser/google_apis/dummy_auth_service.cc b/chrome/browser/google_apis/dummy_auth_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b045b77305d96fdef2fcf912fb477d8101e7e1c3
--- /dev/null
+++ b/chrome/browser/google_apis/dummy_auth_service.cc
@@ -0,0 +1,39 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/google_apis/dummy_auth_service.h"
+
+namespace google_apis {
+
+DummyAuthService::DummyAuthService() : dummy_token("testtoken") {
+}
+
+void DummyAuthService::AddObserver(AuthServiceObserver* observer) {
+}
+
+void DummyAuthService::RemoveObserver(AuthServiceObserver* observer) {
+}
+
+void DummyAuthService::StartAuthentication(const AuthStatusCallback& callback) {
+}
+
+bool DummyAuthService::HasAccessToken() const {
+ return true;
+}
+
+bool DummyAuthService::HasRefreshToken() const {
+ return true;
+}
+
+const std::string& DummyAuthService::access_token() const {
+ return dummy_token;
+}
+
+void DummyAuthService::ClearAccessToken() {
+}
+
+void DummyAuthService::ClearRefreshToken() {
+}
+
+} // namespace google_apis
« no previous file with comments | « chrome/browser/google_apis/dummy_auth_service.h ('k') | chrome/browser/google_apis/gdata_wapi_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698