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

Side by Side Diff: content/renderer/savable_resources_browsertest.cc

Issue 220253002: Add net/base/filename_util.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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) 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/public/renderer/render_view.h" 10 #include "content/public/renderer/render_view.h"
11 #include "content/public/test/content_browser_test.h" 11 #include "content/public/test/content_browser_test.h"
12 #include "content/public/test/content_browser_test_utils.h" 12 #include "content/public/test/content_browser_test_utils.h"
13 #include "content/renderer/savable_resources.h" 13 #include "content/renderer/savable_resources.h"
14 #include "content/shell/browser/shell.h" 14 #include "content/shell/browser/shell.h"
15 #include "net/base/net_util.h" 15 #include "net/base/filename_util.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class SavableResourcesTest : public ContentBrowserTest { 19 class SavableResourcesTest : public ContentBrowserTest {
20 public: 20 public:
21 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 21 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
22 command_line->AppendSwitch(switches::kSingleProcess); 22 command_line->AppendSwitch(switches::kSingleProcess);
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 // Don't want to try to create a GPU process. 24 // Don't want to try to create a GPU process.
25 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing); 25 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 expected_resources_set.insert( 133 expected_resources_set.insert(
134 net::FilePathToFileURL(expected_frame_url)); 134 net::FilePathToFileURL(expected_frame_url));
135 } 135 }
136 136
137 base::FilePath page_file_path = 137 base::FilePath page_file_path =
138 GetTestFilePath("dom_serializer", "youtube_2.htm"); 138 GetTestFilePath("dom_serializer", "youtube_2.htm");
139 GetSavableResourceLinksForPage(page_file_path, expected_resources_set); 139 GetSavableResourceLinksForPage(page_file_path, expected_resources_set);
140 } 140 }
141 141
142 } // namespace content 142 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/dom_serializer_browsertest.cc ('k') | content/shell/browser/shell_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698