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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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/filename_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::kDisableGpu); 25 command_line->AppendSwitch(switches::kDisableGpu);
26 #endif 26 #endif
27 } 27 }
28 28
29 // Test function GetAllSavableResourceLinksForCurrentPage with a web page. 29 // Test function GetAllSavableResourceLinksForCurrentPage with a web page.
30 // We expect result of GetAllSavableResourceLinksForCurrentPage exactly 30 // We expect result of GetAllSavableResourceLinksForCurrentPage exactly
31 // matches expected_resources_set. 31 // matches expected_resources_set.
(...skipping 101 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/resource_fetcher_browsertest.cc ('k') | content/renderer/scheduler_proxy_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698