blob: 83647c682cabc5ea50dbef540167dacf8ea640d9 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2018 The Chromium Authors
Robbie McElrath357abfc2018-09-14 20:43:542// 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 McElrath357abfc2018-09-14 20:43:5410namespace network {
11class TestNetworkConnectionTracker;
12}
13
14// Contains common initialization logic needed by ios component tests.
15class IosComponentsTestInitializer {
16 public:
17 IosComponentsTestInitializer();
David Bienvenu29844192020-09-14 22:20:2118 IosComponentsTestInitializer(const IosComponentsTestInitializer&) = delete;
19 IosComponentsTestInitializer& operator=(const IosComponentsTestInitializer&) =
20 delete;
Robbie McElrath357abfc2018-09-14 20:43:5421 virtual ~IosComponentsTestInitializer();
22
23 private:
24 std::unique_ptr<network::TestNetworkConnectionTracker>
25 network_connection_tracker_;
Robbie McElrath357abfc2018-09-14 20:43:5426};
27
28#endif // COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_