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

Side by Side Diff: chrome/test/automated_ui_tests/automated_ui_tests.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 <fstream> 5 #include <fstream>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 18 matching lines...) Expand all
29 #include "chrome/test/automation/window_proxy.h" 29 #include "chrome/test/automation/window_proxy.h"
30 #include "chrome/test/ui/ui_test.h" 30 #include "chrome/test/ui/ui_test.h"
31 #include "googleurl/src/gurl.h" 31 #include "googleurl/src/gurl.h"
32 32
33 #if defined(TOOLKIT_VIEWS) 33 #if defined(TOOLKIT_VIEWS)
34 #include "views/view.h" 34 #include "views/view.h"
35 #endif 35 #endif
36 36
37 namespace { 37 namespace {
38 38
39 const wchar_t* const kReproSwitch = L"key"; 39 const char kReproSwitch[] = "key";
40 40
41 const wchar_t* const kReproRepeatSwitch = L"num-reproductions"; 41 const char kReproRepeatSwitch[] = "num-reproductions";
42 42
43 const wchar_t* const kInputFilePathSwitch = L"input"; 43 const char kInputFilePathSwitch[] = "input";
44 44
45 const wchar_t* const kOutputFilePathSwitch = L"output"; 45 const char kOutputFilePathSwitch[] = "output";
46 46
47 const wchar_t* const kDebugModeSwitch = L"debug"; 47 const char kDebugModeSwitch[] = "debug";
48 48
49 const wchar_t* const kWaitSwitch = L"wait-after-action"; 49 const char kWaitSwitch[] = "wait-after-action";
50 50
51 const FilePath::CharType* const kDefaultInputFilePath = 51 const FilePath::CharType* const kDefaultInputFilePath =
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 L"C:\\automated_ui_tests.txt"; 53 L"C:\\automated_ui_tests.txt";
54 #else 54 #else
55 "/tmp/automated_ui_tests.txt"; 55 "/tmp/automated_ui_tests.txt";
56 #endif 56 #endif
57 57
58 const FilePath::CharType* const kDefaultOutputFilePath = 58 const FilePath::CharType* const kDefaultOutputFilePath =
59 #if defined(OS_WIN) 59 #if defined(OS_WIN)
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 } 751 }
752 } 752 }
753 753
754 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { 754 TEST_F(AutomatedUITest, TheOneAndOnlyTest) {
755 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); 755 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
756 if (parsed_command_line.HasSwitch(kReproSwitch)) 756 if (parsed_command_line.HasSwitch(kReproSwitch))
757 RunReproduction(); 757 RunReproduction();
758 else 758 else
759 RunAutomatedUITest(); 759 RunAutomatedUITest();
760 } 760 }
OLDNEW
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | chrome/test/mini_installer_test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698