blob: 5fdb1e63b902f7a5e1b2baa89f42cf4389106680 [file]
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// proxy api test
// browser_tests.exe --gtest_filter=ProxySettingsApiTest.ProxyFixedSingle
chrome.test.runTests([
// Verify that execution has started to make sure flaky timeouts are not
// caused by us.
function verifyTestsHaveStarted() {
chrome.test.succeed();
},
function setSingleProxy() {
const oneProxy = {
host: '127.0.0.1',
port: 100,
};
const rules = {
singleProxy: oneProxy,
};
const config = {rules: rules, mode: 'fixed_servers'};
chrome.proxy.settings.set({value: config}, chrome.test.callbackPass());
},
]);