// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. module content.mojom; import "services/network/public/interfaces/network_change_manager.mojom"; struct Rule { string host_pattern; string replacement; }; // Testing interface to the network service. interface NetworkServiceTest { // Adds the given host resolver rules in the process where the network // service is running. [Sync] AddRules(array rules) => (); // Simulates a network connection type change. The new connection type will be // updated to |type| and broadcasts will be sent to // NetworkConnectionManagerClient implementations. SimulateNetworkChange(network.mojom.ConnectionType type) => (); // Crash the process where network service is running. SimulateCrash(); };