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

Unified Diff: chrome/browser/signin/fake_auth_status_provider.h

Issue 216943002: Componentize SigninErrorController unittest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing dependency Created 6 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/signin/fake_auth_status_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/fake_auth_status_provider.h
diff --git a/chrome/browser/signin/fake_auth_status_provider.h b/chrome/browser/signin/fake_auth_status_provider.h
deleted file mode 100644
index 98565580628cd64ce3673a15488106e73e3112b9..0000000000000000000000000000000000000000
--- a/chrome/browser/signin/fake_auth_status_provider.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 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.
-
-#ifndef CHROME_BROWSER_SIGNIN_FAKE_AUTH_STATUS_PROVIDER_H_
-#define CHROME_BROWSER_SIGNIN_FAKE_AUTH_STATUS_PROVIDER_H_
-
-#include "components/signin/core/browser/signin_error_controller.h"
-
-// Helper class that reports auth errors to SigninErrorController. Automatically
-// registers and de-registers itself as an AuthStatusProvider in the
-// constructor and destructor.
-class FakeAuthStatusProvider
- : public SigninErrorController::AuthStatusProvider {
- public:
- explicit FakeAuthStatusProvider(SigninErrorController* error);
- virtual ~FakeAuthStatusProvider();
-
- // Sets the auth error that this provider reports to SigninErrorController.
- // Also notifies SigninErrorController via AuthStatusChanged().
- void SetAuthError(const std::string& account_id,
- const GoogleServiceAuthError& error);
-
- void set_error_without_status_change(const GoogleServiceAuthError& error) {
- auth_error_ = error;
- }
-
- // AuthStatusProvider implementation.
- virtual std::string GetAccountId() const OVERRIDE;
- virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
-
- private:
- SigninErrorController* error_provider_;
- std::string account_id_;
- GoogleServiceAuthError auth_error_;
-};
-
-#endif // CHROME_BROWSER_SIGNIN_FAKE_AUTH_STATUS_PROVIDER_H_
« no previous file with comments | « no previous file | chrome/browser/signin/fake_auth_status_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698