// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_NETWORK_TEST_TEST_NETWORK_CONNECTION_TRACKER_H_ #define SERVICES_NETWORK_TEST_TEST_NETWORK_CONNECTION_TRACKER_H_ #include "services/network/public/cpp/network_connection_tracker.h" namespace network { // Allows unit tests to set the network connection type. // GetConnectionType() can be set to respond synchronously or asynchronously, // so that it may be tested that tested units are able to correctly handle // either. class TestNetworkConnectionTracker : public NetworkConnectionTracker { … }; } // namespace network #endif // SERVICES_NETWORK_TEST_TEST_NETWORK_CONNECTION_TRACKER_H_