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

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

Issue 115482: Move WebMediaPlayerClientImpl files to WebKit API src location.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/webkit.gyp » ('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 <iostream> 5 #include <iostream>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/event_recorder.h" 10 #include "base/event_recorder.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 if (playback_mode) 231 if (playback_mode)
232 base::EventRecorder::current()->StartPlayback(script_path); 232 base::EventRecorder::current()->StartPlayback(script_path);
233 } 233 }
234 234
235 if (parsed_command_line.HasSwitch(test_shell::kDebugMemoryInUse)) { 235 if (parsed_command_line.HasSwitch(test_shell::kDebugMemoryInUse)) {
236 base::MemoryDebug::SetMemoryInUseEnabled(true); 236 base::MemoryDebug::SetMemoryInUseEnabled(true);
237 // Dump all in use memory at startup 237 // Dump all in use memory at startup
238 base::MemoryDebug::DumpAllMemoryInUse(); 238 base::MemoryDebug::DumpAllMemoryInUse();
239 } 239 }
240 240
241 if (false) {
242 // TODO(scherkus): check for any DLL dependencies.
243 webkit_glue::SetMediaPlayerAvailable(true);
244 }
245
246 // See if we need to run the tests. 241 // See if we need to run the tests.
247 if (layout_test_mode) { 242 if (layout_test_mode) {
248 // Set up for the kind of test requested. 243 // Set up for the kind of test requested.
249 TestShell::TestParams params; 244 TestShell::TestParams params;
250 if (parsed_command_line.HasSwitch(test_shell::kDumpPixels)) { 245 if (parsed_command_line.HasSwitch(test_shell::kDumpPixels)) {
251 // The pixel test flag also gives the image file name to use. 246 // The pixel test flag also gives the image file name to use.
252 params.dump_pixels = true; 247 params.dump_pixels = true;
253 params.pixel_file_name = parsed_command_line.GetSwitchValue( 248 params.pixel_file_name = parsed_command_line.GetSwitchValue(
254 test_shell::kDumpPixels); 249 test_shell::kDumpPixels);
255 if (params.pixel_file_name.size() == 0) { 250 if (params.pixel_file_name.size() == 0) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 324
330 TestShell::ShutdownTestShell(); 325 TestShell::ShutdownTestShell();
331 TestShell::CleanupLogging(); 326 TestShell::CleanupLogging();
332 327
333 // Tear down shared StatsTable; prevents unit_tests from leaking it. 328 // Tear down shared StatsTable; prevents unit_tests from leaking it.
334 StatsTable::set_current(NULL); 329 StatsTable::set_current(NULL);
335 delete table; 330 delete table;
336 331
337 return 0; 332 return 0;
338 } 333 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698