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

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

Issue 13052: Cleanup: move base/platform_test.h -> testing/ (Closed)
Patch Set: fix mark's comment Created 12 years 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
« no previous file with comments | « net/net.xcodeproj/project.pbxproj ('k') | testing/gtest.xcodeproj/project.pbxproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 #endif 10 #endif
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <string> 13 #include <string>
14 14
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/platform_test.h"
18 #include "base/process_util.h" 17 #include "base/process_util.h"
19 #include "base/string_piece.h" 18 #include "base/string_piece.h"
20 #include "base/string_util.h" 19 #include "base/string_util.h"
21 #include "net/base/load_flags.h" 20 #include "net/base/load_flags.h"
22 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
23 #include "net/base/net_module.h" 22 #include "net/base/net_module.h"
24 #include "net/base/net_util.h" 23 #include "net/base/net_util.h"
25 #include "net/disk_cache/disk_cache.h" 24 #include "net/disk_cache/disk_cache.h"
26 #include "net/http/http_cache.h" 25 #include "net/http/http_cache.h"
27 #include "net/http/http_network_layer.h" 26 #include "net/http/http_network_layer.h"
28 #include "net/url_request/url_request.h" 27 #include "net/url_request/url_request.h"
29 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "testing/platform_test.h"
30 30
31 using base::Time; 31 using base::Time;
32 32
33 namespace { 33 namespace {
34 34
35 class URLRequestHttpCacheContext : public URLRequestContext { 35 class URLRequestHttpCacheContext : public URLRequestContext {
36 public: 36 public:
37 URLRequestHttpCacheContext() { 37 URLRequestHttpCacheContext() {
38 http_transaction_factory_ = 38 http_transaction_factory_ =
39 new net::HttpCache(net::HttpNetworkLayer::CreateFactory(NULL), 39 new net::HttpCache(net::HttpNetworkLayer::CreateFactory(NULL),
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 EXPECT_FALSE(ContainsString(data, "Content-Length:")); 827 EXPECT_FALSE(ContainsString(data, "Content-Length:"));
828 EXPECT_FALSE(ContainsString(data, "Content-Type:")); 828 EXPECT_FALSE(ContainsString(data, "Content-Type:"));
829 EXPECT_FALSE(ContainsString(data, "Origin:")); 829 EXPECT_FALSE(ContainsString(data, "Origin:"));
830 830
831 // These extra request headers should not have been stripped. 831 // These extra request headers should not have been stripped.
832 EXPECT_TRUE(ContainsString(data, "Accept:")); 832 EXPECT_TRUE(ContainsString(data, "Accept:"));
833 EXPECT_TRUE(ContainsString(data, "Accept-Language:")); 833 EXPECT_TRUE(ContainsString(data, "Accept-Language:"));
834 EXPECT_TRUE(ContainsString(data, "Accept-Charset:")); 834 EXPECT_TRUE(ContainsString(data, "Accept-Charset:"));
835 } 835 }
836 836
OLDNEW
« no previous file with comments | « net/net.xcodeproj/project.pbxproj ('k') | testing/gtest.xcodeproj/project.pbxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698