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

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

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
Index: chrome/browser/signin/fake_auth_status_provider.cc
diff --git a/chrome/browser/signin/fake_auth_status_provider.cc b/chrome/browser/signin/fake_auth_status_provider.cc
deleted file mode 100644
index aacf6008fe5479284709b34b2c270c5fc064c0b8..0000000000000000000000000000000000000000
--- a/chrome/browser/signin/fake_auth_status_provider.cc
+++ /dev/null
@@ -1,30 +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.
-
-#include "chrome/browser/signin/fake_auth_status_provider.h"
-
-FakeAuthStatusProvider::FakeAuthStatusProvider(SigninErrorController* error)
- : error_provider_(error),
- auth_error_(GoogleServiceAuthError::AuthErrorNone()) {
- error_provider_->AddProvider(this);
-}
-
-FakeAuthStatusProvider::~FakeAuthStatusProvider() {
- error_provider_->RemoveProvider(this);
-}
-
-std::string FakeAuthStatusProvider::GetAccountId() const {
- return account_id_;
-}
-
-GoogleServiceAuthError FakeAuthStatusProvider::GetAuthStatus() const {
- return auth_error_;
-}
-
-void FakeAuthStatusProvider::SetAuthError(const std::string& account_id,
- const GoogleServiceAuthError& error) {
- account_id_ = account_id;
- auth_error_ = error;
- error_provider_->AuthStatusChanged();
-}
« no previous file with comments | « chrome/browser/signin/fake_auth_status_provider.h ('k') | chrome/browser/signin/signin_error_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698