| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OFFLINE_PAGES_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H
_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H
_ |
| 7 | 7 |
| 8 #include "base/supports_user_data.h" | 8 #include "base/supports_user_data.h" |
| 9 #include "net/nqe/effective_connection_type.h" | 9 #include "net/nqe/effective_connection_type.h" |
| 10 #include "net/nqe/network_quality_estimator.h" | 10 #include "net/nqe/network_quality_estimator.h" |
| 11 | 11 |
| 12 namespace offline_pages { | 12 namespace offline_pages { |
| 13 | 13 |
| 14 // Test class stubbing out the functionality of NQE::NetworkQualityProvider. | 14 // Test class stubbing out the functionality of NQE::NetworkQualityProvider. |
| 15 // It is only used for test support. | 15 // It is only used for test support. |
| 16 class NetworkQualityProviderStub | 16 class NetworkQualityProviderStub |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 void SetEffectiveConnectionTypeForTest(net::EffectiveConnectionType type) { | 38 void SetEffectiveConnectionTypeForTest(net::EffectiveConnectionType type) { |
| 39 connection_type_ = type; | 39 connection_type_ = type; |
| 40 } | 40 } |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 net::EffectiveConnectionType connection_type_; | 43 net::EffectiveConnectionType connection_type_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace offline_pages | 46 } // namespace offline_pages |
| 47 | 47 |
| 48 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H_ | 48 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_NETWORK_QUALITY_PROVIDER_STU
B_H_ |
| OLD | NEW |