| 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 COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_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 "components/gcm_driver/gcm_driver.h" | 10 #include "components/gcm_driver/gcm_driver.h" |
| 11 | 11 |
| 12 namespace base { |
| 13 class SequencedTaskRunner; |
| 14 } |
| 15 |
| 12 namespace gcm { | 16 namespace gcm { |
| 13 | 17 |
| 14 class FakeGCMDriver : public GCMDriver { | 18 class FakeGCMDriver : public GCMDriver { |
| 15 public: | 19 public: |
| 16 FakeGCMDriver(); | 20 FakeGCMDriver(); |
| 17 explicit FakeGCMDriver( | 21 explicit FakeGCMDriver( |
| 18 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 22 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
| 19 | 23 |
| 20 ~FakeGCMDriver() override; | 24 ~FakeGCMDriver() override; |
| 21 | 25 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 GCMEncryptionProvider::DecryptionResult result) | 62 GCMEncryptionProvider::DecryptionResult result) |
| 59 override; | 63 override; |
| 60 | 64 |
| 61 private: | 65 private: |
| 62 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); | 66 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); |
| 63 }; | 67 }; |
| 64 | 68 |
| 65 } // namespace gcm | 69 } // namespace gcm |
| 66 | 70 |
| 67 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 71 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
| OLD | NEW |