OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/proxy/dhcp_proxy_script_adapter_fetcher_win.h" | 5 #include "net/proxy/dhcp_proxy_script_adapter_fetcher_win.h" |
6 | 6 |
7 #include "base/perftimer.h" | 7 #include "base/perftimer.h" |
8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
9 #include "base/test/test_timeouts.h" | 9 #include "base/test/test_timeouts.h" |
10 #include "base/timer.h" | 10 #include "base/timer/timer.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/base/test_completion_callback.h" | 12 #include "net/base/test_completion_callback.h" |
13 #include "net/proxy/mock_proxy_script_fetcher.h" | 13 #include "net/proxy/mock_proxy_script_fetcher.h" |
14 #include "net/proxy/proxy_script_fetcher_impl.h" | 14 #include "net/proxy/proxy_script_fetcher_impl.h" |
15 #include "net/test/spawned_test_server/spawned_test_server.h" | 15 #include "net/test/spawned_test_server/spawned_test_server.h" |
16 #include "net/url_request/url_request_test_util.h" | 16 #include "net/url_request/url_request_test_util.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 EXPECT_EQ(OK, client.fetcher_->GetResult()); | 290 EXPECT_EQ(OK, client.fetcher_->GetResult()); |
291 EXPECT_EQ(base::string16(L"-downloadable.pac-\n"), | 291 EXPECT_EQ(base::string16(L"-downloadable.pac-\n"), |
292 client.fetcher_->GetPacScript()); | 292 client.fetcher_->GetPacScript()); |
293 EXPECT_EQ(configured_url, | 293 EXPECT_EQ(configured_url, |
294 client.fetcher_->GetPacURL()); | 294 client.fetcher_->GetPacURL()); |
295 } | 295 } |
296 | 296 |
297 } // namespace | 297 } // namespace |
298 | 298 |
299 } // namespace net | 299 } // namespace net |
OLD | NEW |