| 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" | |
| 11 #include "chrome/browser/services/gcm/gcm_client_mock.h" | 10 #include "chrome/browser/services/gcm/gcm_client_mock.h" |
| 11 #include "components/gcm/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( | 19 explicit FakeGCMClientFactory( |
| 20 GCMClientMock::LoadingDelay gcm_client_loading_delay); | 20 GCMClientMock::LoadingDelay gcm_client_loading_delay); |
| 21 virtual ~FakeGCMClientFactory(); | 21 virtual ~FakeGCMClientFactory(); |
| 22 | 22 |
| 23 // GCMClientFactory: | 23 // GCMClientFactory: |
| 24 virtual scoped_ptr<GCMClient> BuildInstance() OVERRIDE; | 24 virtual scoped_ptr<GCMClient> BuildInstance( |
| 25 scoped_ptr<Encryptor> encryptor) OVERRIDE; |
| 25 | 26 |
| 26 private: | 27 private: |
| 27 GCMClientMock::LoadingDelay gcm_client_loading_delay_; | 28 GCMClientMock::LoadingDelay gcm_client_loading_delay_; |
| 28 | 29 |
| 29 DISALLOW_COPY_AND_ASSIGN(FakeGCMClientFactory); | 30 DISALLOW_COPY_AND_ASSIGN(FakeGCMClientFactory); |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace gcm | 33 } // namespace gcm |
| 33 | 34 |
| 34 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_ | 35 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_ |
| OLD | NEW |