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

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

Issue 18332014: Move Copy* into the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows Created 7 years, 5 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) 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 "chrome_frame/test/test_with_web_server.h" 5 #include "chrome_frame/test/test_with_web_server.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/files/memory_mapped_file.h" 10 #include "base/files/memory_mapped_file.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 results_dir_ = chrome_frame_test::GetTestDataFolder().AppendASCII("dump"); 103 results_dir_ = chrome_frame_test::GetTestDataFolder().AppendASCII("dump");
104 104
105 // Copy the CFInstance.js and CFInstall.js files from src\chrome_frame to 105 // Copy the CFInstance.js and CFInstall.js files from src\chrome_frame to
106 // src\chrome_frame\test\data. 106 // src\chrome_frame\test\data.
107 base::FilePath CFInstance_src_path; 107 base::FilePath CFInstance_src_path;
108 base::FilePath CFInstall_src_path; 108 base::FilePath CFInstall_src_path;
109 109
110 CFInstance_src_path = chrome_frame_source_path.AppendASCII("CFInstance.js"); 110 CFInstance_src_path = chrome_frame_source_path.AppendASCII("CFInstance.js");
111 CFInstance_path_ = test_file_path_.AppendASCII("CFInstance.js"); 111 CFInstance_path_ = test_file_path_.AppendASCII("CFInstance.js");
112 112
113 ASSERT_TRUE(file_util::CopyFile(CFInstance_src_path, CFInstance_path_)); 113 ASSERT_TRUE(base::CopyFile(CFInstance_src_path, CFInstance_path_));
114 114
115 CFInstall_src_path = chrome_frame_source_path.AppendASCII("CFInstall.js"); 115 CFInstall_src_path = chrome_frame_source_path.AppendASCII("CFInstall.js");
116 CFInstall_path_ = test_file_path_.AppendASCII("CFInstall.js"); 116 CFInstall_path_ = test_file_path_.AppendASCII("CFInstall.js");
117 117
118 ASSERT_TRUE(file_util::CopyFile(CFInstall_src_path, CFInstall_path_)); 118 ASSERT_TRUE(base::CopyFile(CFInstall_src_path, CFInstall_path_));
119 119
120 loop_ = new chrome_frame_test::TimedMsgLoop(); 120 loop_ = new chrome_frame_test::TimedMsgLoop();
121 loop_->set_snapshot_on_timeout(true); 121 loop_->set_snapshot_on_timeout(true);
122 local_address_ = chrome_frame_test::GetLocalIPv4Address(); 122 local_address_ = chrome_frame_test::GetLocalIPv4Address();
123 listener_mock_ = new testing::StrictMock<MockWebServerListener>(); 123 listener_mock_ = new testing::StrictMock<MockWebServerListener>();
124 server_mock_ = new testing::StrictMock<MockWebServer>( 124 server_mock_ = new testing::StrictMock<MockWebServer>(
125 1337, ASCIIToWide(local_address_), 125 1337, ASCIIToWide(local_address_),
126 chrome_frame_test::GetTestDataFolder()); 126 chrome_frame_test::GetTestDataFolder());
127 server_mock_->set_listener(listener_mock_); 127 server_mock_->set_listener(listener_mock_);
128 } 128 }
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 // This test loads a large page and ensures that the full page contents are 1090 // This test loads a large page and ensures that the full page contents are
1091 // actually loaded via a self-validating HTML page. This is done due to a bug 1091 // actually loaded via a self-validating HTML page. This is done due to a bug
1092 // whereby the middle of the response stream would sometimes be truncated when 1092 // whereby the middle of the response stream would sometimes be truncated when
1093 // loading a CF document. See http://crbug.com/178421 for details. 1093 // loading a CF document. See http://crbug.com/178421 for details.
1094 TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_LargePageLoad) { 1094 TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_LargePageLoad) {
1095 const wchar_t kLargePageLoadPage[] = 1095 const wchar_t kLargePageLoadPage[] =
1096 L"chrome_frame_large_page.html"; 1096 L"chrome_frame_large_page.html";
1097 1097
1098 SimpleBrowserTest(IE, kLargePageLoadPage); 1098 SimpleBrowserTest(IE, kLargePageLoadPage);
1099 } 1099 }
OLDNEW
« no previous file with comments | « chrome_frame/test/dll_redirector_loading_test.cc ('k') | cloud_print/common/win/install_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698