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

Side by Side Diff: chrome/test/ui/ui_test.cc

Issue 24017: More refactoring of PluginProcessHost (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/common/debug_flags.cc ('k') | no next file » | 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 "chrome/test/ui/ui_test.h" 5 #include "chrome/test/ui/ui_test.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 command_line.AppendSwitch(switches::kDumpHistogramsOnExit); 325 command_line.AppendSwitch(switches::kDumpHistogramsOnExit);
326 326
327 #ifdef WAIT_FOR_DEBUGGER_ON_OPEN 327 #ifdef WAIT_FOR_DEBUGGER_ON_OPEN
328 command_line.AppendSwitch(switches::kDebugOnStart); 328 command_line.AppendSwitch(switches::kDebugOnStart);
329 #endif 329 #endif
330 330
331 if (!ui_test_name_.empty()) 331 if (!ui_test_name_.empty())
332 command_line.AppendSwitchWithValue(switches::kTestName, 332 command_line.AppendSwitchWithValue(switches::kTestName,
333 ui_test_name_); 333 ui_test_name_);
334 334
335 DebugFlags::ProcessDebugFlags(&command_line, DebugFlags::UNKNOWN, false); 335 DebugFlags::ProcessDebugFlags(
336 &command_line, ChildProcessInfo::UNKNOWN_PROCESS, false);
336 command_line.AppendArguments(arguments, false); 337 command_line.AppendArguments(arguments, false);
337 338
338 // Clear user data directory to make sure test environment is consistent 339 // Clear user data directory to make sure test environment is consistent
339 // We balk on really short (absolute) user_data_dir directory names, because 340 // We balk on really short (absolute) user_data_dir directory names, because
340 // we're worried that they'd accidentally be root or something. 341 // we're worried that they'd accidentally be root or something.
341 ASSERT_LT(10, static_cast<int>(user_data_dir_.size())) << 342 ASSERT_LT(10, static_cast<int>(user_data_dir_.size())) <<
342 "The user data directory name passed into this test was too " 343 "The user data directory name passed into this test was too "
343 "short to delete safely. Please check the user-data-dir " 344 "short to delete safely. Please check the user-data-dir "
344 "argument and try again."; 345 "argument and try again.";
345 if (clear_profile) 346 if (clear_profile)
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // <*>RESULT <graph_name>: <trace_name>= <value> <units> 803 // <*>RESULT <graph_name>: <trace_name>= <value> <units>
803 // <*>RESULT <graph_name>: <trace_name>= {<mean>, <std deviation>} <units> 804 // <*>RESULT <graph_name>: <trace_name>= {<mean>, <std deviation>} <units>
804 // <*>RESULT <graph_name>: <trace_name>= [<value>,value,value,...,] <units> 805 // <*>RESULT <graph_name>: <trace_name>= [<value>,value,value,...,] <units>
805 wprintf(L"%lsRESULT %ls%ls: %ls= %ls%ls%ls %ls\n", 806 wprintf(L"%lsRESULT %ls%ls: %ls= %ls%ls%ls %ls\n",
806 important ? L"*" : L"", measurement.c_str(), modifier.c_str(), 807 important ? L"*" : L"", measurement.c_str(), modifier.c_str(),
807 trace.c_str(), prefix.c_str(), values.c_str(), suffix.c_str(), 808 trace.c_str(), prefix.c_str(), values.c_str(), suffix.c_str(),
808 units.c_str()); 809 units.c_str());
809 } 810 }
810 811
811 #endif // OS_WIN 812 #endif // OS_WIN
OLDNEW
« no previous file with comments | « chrome/common/debug_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698