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

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

Issue 209022: Enable page load test on linux (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: dont compile page load test on mac Created 11 years, 3 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/test/reliability/page_load_test.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-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 "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 28 matching lines...) Expand all
39 39
40 // Delay to let browser complete a requested action. 40 // Delay to let browser complete a requested action.
41 static const int kWaitForActionMsec = 2000; 41 static const int kWaitForActionMsec = 2000;
42 static const int kWaitForActionMaxMsec = 10000; 42 static const int kWaitForActionMaxMsec = 10000;
43 // Delay to let the browser complete the test. 43 // Delay to let the browser complete the test.
44 static const int kMaxTestExecutionTime = 30000; 44 static const int kMaxTestExecutionTime = 30000;
45 // Delay to let the browser shut down before trying more brutal methods. 45 // Delay to let the browser shut down before trying more brutal methods.
46 static const int kWaitForTerminateMsec = 30000; 46 static const int kWaitForTerminateMsec = 30000;
47 47
48 const wchar_t UITest::kFailedNoCrashService[] = 48 const wchar_t UITest::kFailedNoCrashService[] =
49 #if defined(OS_WIN)
49 L"NOTE: This test is expected to fail if crash_service.exe is not " 50 L"NOTE: This test is expected to fail if crash_service.exe is not "
50 L"running. Start it manually before running this test (see the build " 51 L"running. Start it manually before running this test (see the build "
51 L"output directory)."; 52 L"output directory).";
53 #elif defined(OS_LINUX)
54 L"NOTE: This test is expected to fail if breakpad is not built in "
55 L"or if chromium is not running headless (try CHROME_HEADLESS=1).";
56 #else
57 L"NOTE: Crash service not ported to this platform!";
58 #endif
52 bool UITest::in_process_renderer_ = false; 59 bool UITest::in_process_renderer_ = false;
53 bool UITest::no_sandbox_ = false; 60 bool UITest::no_sandbox_ = false;
54 bool UITest::full_memory_dump_ = false; 61 bool UITest::full_memory_dump_ = false;
55 bool UITest::safe_plugins_ = false; 62 bool UITest::safe_plugins_ = false;
56 bool UITest::show_error_dialogs_ = true; 63 bool UITest::show_error_dialogs_ = true;
57 bool UITest::default_use_existing_browser_ = false; 64 bool UITest::default_use_existing_browser_ = false;
58 bool UITest::dump_histograms_on_exit_ = false; 65 bool UITest::dump_histograms_on_exit_ = false;
59 bool UITest::enable_dcheck_ = false; 66 bool UITest::enable_dcheck_ = false;
60 bool UITest::silent_dump_on_dcheck_ = false; 67 bool UITest::silent_dump_on_dcheck_ = false;
61 bool UITest::disable_breakpad_ = false; 68 bool UITest::disable_breakpad_ = false;
62 int UITest::timeout_ms_ = 20 * 60 * 1000; 69 int UITest::timeout_ms_ = 20 * 60 * 1000;
63 std::wstring UITest::js_flags_ = L""; 70 std::wstring UITest::js_flags_ = L"";
64 std::wstring UITest::log_level_ = L""; 71 std::wstring UITest::log_level_ = L"";
65 72
66
67 // Specify the time (in milliseconds) that the ui_tests should wait before 73 // Specify the time (in milliseconds) that the ui_tests should wait before
68 // timing out. This is used to specify longer timeouts when running under Purify 74 // timing out. This is used to specify longer timeouts when running under Purify
69 // which requires much more time. 75 // which requires much more time.
70 const wchar_t kUiTestTimeout[] = L"ui-test-timeout"; 76 const wchar_t kUiTestTimeout[] = L"ui-test-timeout";
71 const wchar_t kUiTestActionTimeout[] = L"ui-test-action-timeout"; 77 const wchar_t kUiTestActionTimeout[] = L"ui-test-action-timeout";
72 const wchar_t kUiTestActionMaxTimeout[] = L"ui-test-action-max-timeout"; 78 const wchar_t kUiTestActionMaxTimeout[] = L"ui-test-action-max-timeout";
73 const wchar_t kUiTestSleepTimeout[] = L"ui-test-sleep-timeout"; 79 const wchar_t kUiTestSleepTimeout[] = L"ui-test-sleep-timeout";
74 const wchar_t kUiTestTerminateTimeout[] = L"ui-test-terminate-timeout"; 80 const wchar_t kUiTestTerminateTimeout[] = L"ui-test-terminate-timeout";
75 81
76 const wchar_t kExtraChromeFlagsSwitch[] = L"extra-chrome-flags"; 82 const wchar_t kExtraChromeFlagsSwitch[] = L"extra-chrome-flags";
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 #else 1108 #else
1103 // TODO(port): above code is very Windows-specific; we need to 1109 // TODO(port): above code is very Windows-specific; we need to
1104 // figure out and abstract out how we'll handle finding any existing 1110 // figure out and abstract out how we'll handle finding any existing
1105 // running process, etc. on other platforms. 1111 // running process, etc. on other platforms.
1106 NOTIMPLEMENTED(); 1112 NOTIMPLEMENTED();
1107 #endif 1113 #endif
1108 } 1114 }
1109 1115
1110 return true; 1116 return true;
1111 } 1117 }
OLDNEW
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698