OLD | NEW |
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_ |
OLD | NEW |