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

Side by Side Diff: chrome/browser/invalidation/fake_invalidation_service.h

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass scoped_refptr as const reference. 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
6 #define CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_ 6 #define CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 18 matching lines...) Expand all
29 class InvalidationLogger; 29 class InvalidationLogger;
30 30
31 // Fake invalidation auth provider implementation. 31 // Fake invalidation auth provider implementation.
32 class FakeInvalidationAuthProvider : public InvalidationAuthProvider { 32 class FakeInvalidationAuthProvider : public InvalidationAuthProvider {
33 public: 33 public:
34 FakeInvalidationAuthProvider(); 34 FakeInvalidationAuthProvider();
35 virtual ~FakeInvalidationAuthProvider(); 35 virtual ~FakeInvalidationAuthProvider();
36 36
37 // InvalidationAuthProvider: 37 // InvalidationAuthProvider:
38 virtual OAuth2TokenService* GetTokenService() OVERRIDE; 38 virtual OAuth2TokenService* GetTokenService() OVERRIDE;
39 virtual std::string GetUsername() OVERRIDE;
39 virtual std::string GetAccountId() OVERRIDE; 40 virtual std::string GetAccountId() OVERRIDE;
40 virtual bool ShowLoginUI() OVERRIDE; 41 virtual bool ShowLoginUI() OVERRIDE;
41 42
42 FakeProfileOAuth2TokenService* fake_token_service() { 43 FakeProfileOAuth2TokenService* fake_token_service() {
43 return &token_service_; 44 return &token_service_;
44 } 45 }
45 46
46 private: 47 private:
47 FakeProfileOAuth2TokenService token_service_; 48 FakeProfileOAuth2TokenService token_service_;
48 49
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 syncer::InvalidatorRegistrar invalidator_registrar_; 91 syncer::InvalidatorRegistrar invalidator_registrar_;
91 syncer::MockAckHandler mock_ack_handler_; 92 syncer::MockAckHandler mock_ack_handler_;
92 FakeInvalidationAuthProvider auth_provider_; 93 FakeInvalidationAuthProvider auth_provider_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationService); 95 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationService);
95 }; 96 };
96 97
97 } // namespace invalidation 98 } // namespace invalidation
98 99
99 #endif // CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_ 100 #endif // CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698