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

Side by Side Diff: trunk/src/chrome/browser/services/gcm/fake_gcm_client_factory.h

Issue 281783004: Revert 270226 "Componentize GCM Part 1: create GCM component and..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_
6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/services/gcm/gcm_client_factory.h"
10 #include "chrome/browser/services/gcm/gcm_client_mock.h" 11 #include "chrome/browser/services/gcm/gcm_client_mock.h"
11 #include "components/gcm_driver/gcm_client_factory.h"
12 12
13 namespace gcm { 13 namespace gcm {
14 14
15 class GCMClient; 15 class GCMClient;
16 16
17 class FakeGCMClientFactory : public GCMClientFactory { 17 class FakeGCMClientFactory : public GCMClientFactory {
18 public: 18 public:
19 explicit FakeGCMClientFactory(GCMClientMock::StartMode gcm_client_start_mode); 19 explicit FakeGCMClientFactory(GCMClientMock::StartMode gcm_client_start_mode);
20 virtual ~FakeGCMClientFactory(); 20 virtual ~FakeGCMClientFactory();
21 21
22 // GCMClientFactory: 22 // GCMClientFactory:
23 virtual scoped_ptr<GCMClient> BuildInstance() OVERRIDE; 23 virtual scoped_ptr<GCMClient> BuildInstance() OVERRIDE;
24 24
25 private: 25 private:
26 GCMClientMock::StartMode gcm_client_start_mode_; 26 GCMClientMock::StartMode gcm_client_start_mode_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(FakeGCMClientFactory); 28 DISALLOW_COPY_AND_ASSIGN(FakeGCMClientFactory);
29 }; 29 };
30 30
31 } // namespace gcm 31 } // namespace gcm
32 32
33 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_ 33 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698