Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Side by Side Diff: net/url_request/url_request_unittest.cc

Issue 556068: BSD port: USE_NSS and other macros instead of OS_LINUX where applicable (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« net/socket/client_socket.h ('K') | « net/socket/client_socket_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698