Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors |
Robbie McElrath | 357abfc | 2018-09-14 20:43:54 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_ |
| 6 | #define COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | |
Robbie McElrath | 357abfc | 2018-09-14 20:43:54 | [diff] [blame] | 10 | namespace network { |
| 11 | class TestNetworkConnectionTracker; |
| 12 | } |
| 13 | |
| 14 | // Contains common initialization logic needed by ios component tests. |
| 15 | class IosComponentsTestInitializer { |
| 16 | public: |
| 17 | IosComponentsTestInitializer(); |
David Bienvenu | 2984419 | 2020-09-14 22:20:21 | [diff] [blame] | 18 | IosComponentsTestInitializer(const IosComponentsTestInitializer&) = delete; |
| 19 | IosComponentsTestInitializer& operator=(const IosComponentsTestInitializer&) = |
| 20 | delete; |
Robbie McElrath | 357abfc | 2018-09-14 20:43:54 | [diff] [blame] | 21 | virtual ~IosComponentsTestInitializer(); |
| 22 | |
| 23 | private: |
| 24 | std::unique_ptr<network::TestNetworkConnectionTracker> |
| 25 | network_connection_tracker_; |
Robbie McElrath | 357abfc | 2018-09-14 20:43:54 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | #endif // COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_ |