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

Side by Side Diff: chrome_frame/test/test_server_test.cc

Issue 6248021: Reapply r72562 with willchan's nits + locally tested shlib fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <windows.h> 5 #include <windows.h>
6 #include <wininet.h> 6 #include <wininet.h>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/win/scoped_handle.h" 10 #include "base/win/scoped_handle.h"
11 #include "chrome_frame/test/test_server.h" 11 #include "chrome_frame/test/test_server.h"
12 #include "net/base/cookie_monster.h" 12 #include "net/base/cookie_monster.h"
13 #include "net/base/host_resolver_proc.h" 13 #include "net/base/host_resolver_proc.h"
14 #include "net/disk_cache/disk_cache.h" 14 #include "net/disk_cache/disk_cache.h"
15 #include "net/http/http_auth_handler_factory.h" 15 #include "net/http/http_auth_handler_factory.h"
16 #include "net/http/http_cache.h" 16 #include "net/http/http_cache.h"
17 #include "net/proxy/proxy_service.h" 17 #include "net/proxy/proxy_service.h"
18 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
19 #include "net/url_request/url_request_unittest.h" 19 #include "net/url_request/url_request_test_util.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 class TestServerTest: public testing::Test { 22 class TestServerTest: public testing::Test {
23 protected: 23 protected:
24 virtual void SetUp() { 24 virtual void SetUp() {
25 PathService::Get(base::DIR_SOURCE_ROOT, &source_path_); 25 PathService::Get(base::DIR_SOURCE_ROOT, &source_path_);
26 source_path_ = source_path_.Append(FILE_PATH_LITERAL("chrome_frame")); 26 source_path_ = source_path_.Append(FILE_PATH_LITERAL("chrome_frame"));
27 } 27 }
28 virtual void TearDown() { 28 virtual void TearDown() {
29 } 29 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 EXPECT_EQ(file.accessed(), 1); 204 EXPECT_EQ(file.accessed(), 1);
205 EXPECT_EQ(redir.accessed(), 1); 205 EXPECT_EQ(redir.accessed(), 1);
206 206
207 EXPECT_TRUE(person_task.response().find("Guthrie") != std::string::npos); 207 EXPECT_TRUE(person_task.response().find("Guthrie") != std::string::npos);
208 EXPECT_TRUE(file_task.response().find("function") != std::string::npos); 208 EXPECT_TRUE(file_task.response().find("function") != std::string::npos);
209 EXPECT_TRUE(goog_task.response().find("<title>") != std::string::npos); 209 EXPECT_TRUE(goog_task.response().find("<title>") != std::string::npos);
210 } else { 210 } else {
211 ::TerminateThread(worker, ~0); 211 ::TerminateThread(worker, ~0);
212 } 212 }
213 } 213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698