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

Side by Side Diff: chrome/browser/browser_encoding_uitest.cc

Issue 7373004: Move the save file code from chrome to content. This is just a file move so the DEPS in content\b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 #include <string> 4 #include <string>
5 5
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/scoped_temp_dir.h" 7 #include "base/scoped_temp_dir.h"
8 #include "chrome/browser/download/save_package.h"
9 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
10 #include "chrome/test/automation/automation_proxy.h" 9 #include "chrome/test/automation/automation_proxy.h"
11 #include "chrome/test/automation/browser_proxy.h" 10 #include "chrome/test/automation/browser_proxy.h"
12 #include "chrome/test/automation/tab_proxy.h" 11 #include "chrome/test/automation/tab_proxy.h"
13 #include "chrome/test/ui/ui_test.h" 12 #include "chrome/test/ui/ui_test.h"
14 #include "chrome/test/ui_test_utils.h" 13 #include "chrome/test/ui_test_utils.h"
14 #include "content/browser/download/save_package.h"
15 #include "content/browser/net/url_request_mock_http_job.h" 15 #include "content/browser/net/url_request_mock_http_job.h"
16 16
17 static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("encoding_tests"); 17 static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("encoding_tests");
18 18
19 class BrowserEncodingTest : public UITest { 19 class BrowserEncodingTest : public UITest {
20 protected: 20 protected:
21 BrowserEncodingTest() : UITest() {} 21 BrowserEncodingTest() : UITest() {}
22 22
23 // Make sure the content of the page are as expected 23 // Make sure the content of the page are as expected
24 // after override or auto-detect 24 // after override or auto-detect
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 expected_result_file_name = expected_result_file_name.AppendASCII( 294 expected_result_file_name = expected_result_file_name.AppendASCII(
295 kExpectedResultDir); 295 kExpectedResultDir);
296 expected_result_file_name = expected_result_file_name.AppendASCII( 296 expected_result_file_name = expected_result_file_name.AppendASCII(
297 kTestDatas[i].expected_result); 297 kTestDatas[i].expected_result);
298 EXPECT_TRUE(tab->SavePage(full_saved_file_name, temp_sub_resource_dir_, 298 EXPECT_TRUE(tab->SavePage(full_saved_file_name, temp_sub_resource_dir_,
299 SavePackage::SAVE_AS_COMPLETE_HTML)); 299 SavePackage::SAVE_AS_COMPLETE_HTML));
300 EXPECT_TRUE(WaitForDownloadShelfVisible(browser.get())); 300 EXPECT_TRUE(WaitForDownloadShelfVisible(browser.get()));
301 CheckFile(full_saved_file_name, expected_result_file_name, true); 301 CheckFile(full_saved_file_name, expected_result_file_name, true);
302 } 302 }
303 } 303 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698