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

Side by Side Diff: components/signin/core/browser/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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/signin.gypi ('k') | components/signin/core/browser/fake_auth_status_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_FAKE_AUTH_STATUS_PROVIDER_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_AUTH_STATUS_PROVIDER_H_
6 #define CHROME_BROWSER_SIGNIN_FAKE_AUTH_STATUS_PROVIDER_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_AUTH_STATUS_PROVIDER_H_
7 7
8 #include "components/signin/core/browser/signin_error_controller.h" 8 #include "components/signin/core/browser/signin_error_controller.h"
9 9
10 // Helper class that reports auth errors to SigninErrorController. Automatically 10 // Helper class that reports auth errors to SigninErrorController. Automatically
11 // registers and de-registers itself as an AuthStatusProvider in the 11 // registers and de-registers itself as an AuthStatusProvider in the
12 // constructor and destructor. 12 // constructor and destructor.
13 class FakeAuthStatusProvider 13 class FakeAuthStatusProvider
14 : public SigninErrorController::AuthStatusProvider { 14 : public SigninErrorController::AuthStatusProvider {
15 public: 15 public:
16 explicit FakeAuthStatusProvider(SigninErrorController* error); 16 explicit FakeAuthStatusProvider(SigninErrorController* error);
(...skipping 11 matching lines...) Expand all
28 // AuthStatusProvider implementation. 28 // AuthStatusProvider implementation.
29 virtual std::string GetAccountId() const OVERRIDE; 29 virtual std::string GetAccountId() const OVERRIDE;
30 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; 30 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
31 31
32 private: 32 private:
33 SigninErrorController* error_provider_; 33 SigninErrorController* error_provider_;
34 std::string account_id_; 34 std::string account_id_;
35 GoogleServiceAuthError auth_error_; 35 GoogleServiceAuthError auth_error_;
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_SIGNIN_FAKE_AUTH_STATUS_PROVIDER_H_ 38 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_AUTH_STATUS_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/signin.gypi ('k') | components/signin/core/browser/fake_auth_status_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698