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

Side by Side Diff: webkit/tools/test_shell/test_shell_main.cc

Issue 2843005: Rolls WebKit 61233:61234 (Enable HTML5 Lexer) (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/test_shell_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/event_recorder.h" 8 #include "base/event_recorder.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 // Config the network module so it has access to a limited set of resources. 172 // Config the network module so it has access to a limited set of resources.
173 net::NetModule::SetResourceProvider(TestShell::NetResourceProvider); 173 net::NetModule::SetResourceProvider(TestShell::NetResourceProvider);
174 174
175 // On Linux and Mac, load the test root certificate. 175 // On Linux and Mac, load the test root certificate.
176 net::TestServerLauncher ssl_util; 176 net::TestServerLauncher ssl_util;
177 ssl_util.LoadTestRootCert(); 177 ssl_util.LoadTestRootCert();
178 178
179 platform.InitializeGUI(); 179 platform.InitializeGUI();
180 180
181 if (parsed_command_line.HasSwitch(test_shell::kEnableHtml5Parser)) { 181 if (parsed_command_line.HasSwitch(test_shell::kEnableLegacyParser)) {
182 TestShell::enable_html5_parser(); 182 TestShell::disable_html5_parser();
183 } 183 }
184 184
185 TestShell::InitializeTestShell(layout_test_mode, allow_external_pages); 185 TestShell::InitializeTestShell(layout_test_mode, allow_external_pages);
186 186
187 if (parsed_command_line.HasSwitch(test_shell::kAllowScriptsToCloseWindows)) 187 if (parsed_command_line.HasSwitch(test_shell::kAllowScriptsToCloseWindows))
188 TestShell::SetAllowScriptsToCloseWindows(); 188 TestShell::SetAllowScriptsToCloseWindows();
189 189
190 // Disable user themes for layout tests so pixel tests are consistent. 190 // Disable user themes for layout tests so pixel tests are consistent.
191 #if defined(OS_WIN) 191 #if defined(OS_WIN)
192 TestShellWebTheme::Engine engine; 192 TestShellWebTheme::Engine engine;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 TestShell::ShutdownTestShell(); 384 TestShell::ShutdownTestShell();
385 TestShell::CleanupLogging(); 385 TestShell::CleanupLogging();
386 386
387 // Tear down shared StatsTable; prevents unit_tests from leaking it. 387 // Tear down shared StatsTable; prevents unit_tests from leaking it.
388 StatsTable::set_current(NULL); 388 StatsTable::set_current(NULL);
389 delete table; 389 delete table;
390 RemoveSharedMemoryFile(stats_filename); 390 RemoveSharedMemoryFile(stats_filename);
391 391
392 return 0; 392 return 0;
393 } 393 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/test_shell_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698