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

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

Issue 14696007: Warn on missing OVERRIDE/virtual everywhere, not just in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new regressions, attempt 3 Created 7 years, 7 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/shell/shell.h" 11 #include "content/shell/shell.h"
12 #include "content/test/content_browser_test.h" 12 #include "content/test/content_browser_test.h"
13 #include "content/test/content_browser_test_utils.h" 13 #include "content/test/content_browser_test_utils.h"
14 #include "net/base/net_util.h" 14 #include "net/base/net_util.h"
15 #include "webkit/glue/dom_operations.h" 15 #include "webkit/glue/dom_operations.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class DomOperationsTests : public ContentBrowserTest { 19 class DomOperationsTests : public ContentBrowserTest {
20 public: 20 public:
21 virtual void SetUpCommandLine(CommandLine* command_line) { 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) && defined(USE_AURA) 23 #if defined(OS_WIN) && defined(USE_AURA)
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);
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 expected_resources_set.insert( 130 expected_resources_set.insert(
131 net::FilePathToFileURL(expected_frame_url)); 131 net::FilePathToFileURL(expected_frame_url));
132 } 132 }
133 133
134 base::FilePath page_file_path = 134 base::FilePath page_file_path =
135 GetTestFilePath("dom_serializer", "youtube_2.htm"); 135 GetTestFilePath("dom_serializer", "youtube_2.htm");
136 GetSavableResourceLinksForPage(page_file_path, expected_resources_set); 136 GetSavableResourceLinksForPage(page_file_path, expected_resources_set);
137 } 137 }
138 138
139 } // namespace content 139 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698