ios_components_test_initializer.h 899 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_
  5. #define COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_
  6. #include <memory>
  7. namespace network {
  8. class TestNetworkConnectionTracker;
  9. }
  10. // Contains common initialization logic needed by ios component tests.
  11. class IosComponentsTestInitializer {
  12. public:
  13. IosComponentsTestInitializer();
  14. IosComponentsTestInitializer(const IosComponentsTestInitializer&) = delete;
  15. IosComponentsTestInitializer& operator=(const IosComponentsTestInitializer&) =
  16. delete;
  17. virtual ~IosComponentsTestInitializer();
  18. private:
  19. std::unique_ptr<network::TestNetworkConnectionTracker>
  20. network_connection_tracker_;
  21. };
  22. #endif // COMPONENTS_TEST_IOS_COMPONENTS_TEST_INITIALIZER_H_