| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_FACTORY_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_FACTORY_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_FACTORY_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "google_apis/gcm/engine/connection_factory.h" | 10 #include "google_apis/gcm/engine/connection_factory.h" |
| 10 | 11 |
| 11 namespace gcm { | 12 namespace gcm { |
| 12 | 13 |
| 13 class FakeConnectionHandler; | 14 class FakeConnectionHandler; |
| 14 | 15 |
| 15 // A connection factory that mocks out real connections, using a fake connection | 16 // A connection factory that mocks out real connections, using a fake connection |
| 16 // handler instead. | 17 // handler instead. |
| 17 class FakeConnectionFactory : public ConnectionFactory { | 18 class FakeConnectionFactory : public ConnectionFactory { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool delay_reconnect_; | 52 bool delay_reconnect_; |
| 52 | 53 |
| 53 ConnectionListener* connection_listener_; | 54 ConnectionListener* connection_listener_; |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(FakeConnectionFactory); | 56 DISALLOW_COPY_AND_ASSIGN(FakeConnectionFactory); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace gcm | 59 } // namespace gcm |
| 59 | 60 |
| 60 #endif // GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_FACTORY_H_ | 61 #endif // GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_FACTORY_H_ |
| OLD | NEW |