OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_ | 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_ |
6 #define NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_ | 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/proxy/proxy_config.h" | 9 #include "net/proxy/proxy_config.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 // Helper functions to describe the expected value of a | 12 // Helper functions to describe the expected value of a |
13 // ProxyConfig::ProxyRules, and to check for a match. | 13 // ProxyConfig::ProxyRules, and to check for a match. |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class ProxyBypassRules; | |
18 | |
19 // This structure contains our expectations on what values the ProxyRules | 17 // This structure contains our expectations on what values the ProxyRules |
20 // should have. | 18 // should have. |
21 struct ProxyRulesExpectation { | 19 struct ProxyRulesExpectation { |
22 ProxyRulesExpectation(ProxyConfig::ProxyRules::Type type, | 20 ProxyRulesExpectation(ProxyConfig::ProxyRules::Type type, |
23 const char* single_proxy, | 21 const char* single_proxy, |
24 const char* proxy_for_http, | 22 const char* proxy_for_http, |
25 const char* proxy_for_https, | 23 const char* proxy_for_https, |
26 const char* proxy_for_ftp, | 24 const char* proxy_for_ftp, |
27 const char* socks_proxy, | 25 const char* socks_proxy, |
28 const char* flattened_bypass_rules, | 26 const char* flattened_bypass_rules, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const char* proxy_for_https; | 82 const char* proxy_for_https; |
85 const char* proxy_for_ftp; | 83 const char* proxy_for_ftp; |
86 const char* socks_proxy; | 84 const char* socks_proxy; |
87 const char* flattened_bypass_rules; | 85 const char* flattened_bypass_rules; |
88 bool reverse_bypass; | 86 bool reverse_bypass; |
89 }; | 87 }; |
90 | 88 |
91 } // namespace net | 89 } // namespace net |
92 | 90 |
93 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_ | 91 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_ |
OLD | NEW |