| 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_CLIENT_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "google_apis/gcm/gcm_client.h" | 10 #include "components/gcm_driver/gcm_client.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class SequencedTaskRunner; | 13 class SequencedTaskRunner; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace gcm { | 16 namespace gcm { |
| 17 | 17 |
| 18 class FakeGCMClient : public GCMClient { | 18 class FakeGCMClient : public GCMClient { |
| 19 public: | 19 public: |
| 20 enum Status { | 20 enum Status { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 scoped_refptr<base::SequencedTaskRunner> ui_thread_; | 93 scoped_refptr<base::SequencedTaskRunner> ui_thread_; |
| 94 scoped_refptr<base::SequencedTaskRunner> io_thread_; | 94 scoped_refptr<base::SequencedTaskRunner> io_thread_; |
| 95 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; | 95 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); | 97 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace gcm | 100 } // namespace gcm |
| 101 | 101 |
| 102 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 102 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| OLD | NEW |