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

Side by Side Diff: content/browser/download/save_package_browsertest.cc

Issue 214823006: Move ContentBrowserTest class to content/public, since it's used by components_browsertests for bro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: remove other files Created 6 years, 8 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 "base/files/scoped_temp_dir.h" 5 #include "base/files/scoped_temp_dir.h"
6 #include "content/browser/download/save_package.h" 6 #include "content/browser/download/save_package.h"
7 #include "content/public/test/content_browser_test.h"
8 #include "content/public/test/content_browser_test_utils.h"
7 #include "content/shell/browser/shell.h" 9 #include "content/shell/browser/shell.h"
8 #include "content/test/content_browser_test.h"
9 #include "content/test/content_browser_test_utils.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 const char kTestFile[] = "files/simple_page.html"; 13 const char kTestFile[] = "files/simple_page.html";
14 14
15 class SavePackageBrowserTest : public ContentBrowserTest { 15 class SavePackageBrowserTest : public ContentBrowserTest {
16 protected: 16 protected:
17 virtual void SetUp() OVERRIDE { 17 virtual void SetUp() OVERRIDE {
18 ASSERT_TRUE(save_dir_.CreateUniqueTempDir()); 18 ASSERT_TRUE(save_dir_.CreateUniqueTempDir());
19 ContentBrowserTest::SetUp(); 19 ContentBrowserTest::SetUp();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 base::FilePath full_file_name, dir; 54 base::FilePath full_file_name, dir;
55 GetDestinationPaths("a", &full_file_name, &dir); 55 GetDestinationPaths("a", &full_file_name, &dir);
56 scoped_refptr<SavePackage> save_package(new SavePackage( 56 scoped_refptr<SavePackage> save_package(new SavePackage(
57 shell()->web_contents(), SAVE_PAGE_TYPE_AS_ONLY_HTML, full_file_name, 57 shell()->web_contents(), SAVE_PAGE_TYPE_AS_ONLY_HTML, full_file_name,
58 dir)); 58 dir));
59 save_package->Cancel(true); 59 save_package->Cancel(true);
60 ASSERT_TRUE(test_server()->Stop()); 60 ASSERT_TRUE(test_server()->Stop());
61 } 61 }
62 62
63 } // namespace content 63 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/mhtml_generation_browsertest.cc ('k') | content/browser/fileapi/file_system_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698