OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/url_request/url_request_unittest.h" | 5 #include "net/url_request/url_request_unittest.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
11 #include <shlobj.h> | 11 #include <shlobj.h> |
12 #elif defined(OS_LINUX) | 12 #elif defined(USE_NSS) |
13 #include "base/nss_util.h" | 13 #include "base/nss_util.h" |
14 #endif | 14 #endif |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "base/file_util.h" | 19 #include "base/file_util.h" |
20 #include "base/format_macros.h" | 20 #include "base/format_macros.h" |
21 #include "base/message_loop.h" | 21 #include "base/message_loop.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 ASSERT_TRUE(NULL != server_.get()); | 2164 ASSERT_TRUE(NULL != server_.get()); |
2165 TestDelegate d; | 2165 TestDelegate d; |
2166 TestURLRequest | 2166 TestURLRequest |
2167 req(server_->TestServerPage("echoheaderoverride?Accept-Charset"), &d); | 2167 req(server_->TestServerPage("echoheaderoverride?Accept-Charset"), &d); |
2168 req.set_context(new URLRequestTestContext()); | 2168 req.set_context(new URLRequestTestContext()); |
2169 req.SetExtraRequestHeaders("Accept-Charset: koi-8r"); | 2169 req.SetExtraRequestHeaders("Accept-Charset: koi-8r"); |
2170 req.Start(); | 2170 req.Start(); |
2171 MessageLoop::current()->Run(); | 2171 MessageLoop::current()->Run(); |
2172 EXPECT_EQ(std::string("koi-8r"), d.data_received()); | 2172 EXPECT_EQ(std::string("koi-8r"), d.data_received()); |
2173 } | 2173 } |
OLD | NEW |