summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:25:15 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:25:15 +0000
commit176aa48371da91eb98d675d87b4e70c7b26d696f (patch)
tree4c972de6ecd5a54650ab1dc7d421187f5d25834f /chrome/test/ui
parent9a3f0ac2899139ace97e399015259d028b4d5704 (diff)
downloadchromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.zip
chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.gz
chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.bz2
Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code.
Move Process and SharedMemory into the base namespace (most changes). Review URL: http://codereview.chromium.org/10895 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui')
-rw-r--r--chrome/test/ui/run_all_unittests.cc2
-rw-r--r--chrome/test/ui/ui_test.cc23
2 files changed, 12 insertions, 13 deletions
diff --git a/chrome/test/ui/run_all_unittests.cc b/chrome/test/ui/run_all_unittests.cc
index 4400f9b..1670f1c 100644
--- a/chrome/test/ui/run_all_unittests.cc
+++ b/chrome/test/ui/run_all_unittests.cc
@@ -8,7 +8,7 @@
#include "chrome/test/ui/ui_test_suite.h"
int main(int argc, char **argv) {
- process_util::EnableTerminationOnHeapCorruption();
+ base::EnableTerminationOnHeapCorruption();
PlatformThread::SetName("Tests_Main");
return UITestSuite(argc, argv).Run();
}
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index f4371d2..41b1325 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -239,12 +239,11 @@ void UITest::LaunchBrowser(const std::wstring& arguments, bool clear_profile) {
browser_launch_time_ = TimeTicks::Now();
- bool started = process_util::LaunchApp(
- command_line,
- false, // Don't wait for process object (doesn't work for
- // us)
- !show_window_,
- &process_);
+ bool started = base::LaunchApp(command_line,
+ false, // Don't wait for process object
+ // (doesn't work for us)
+ !show_window_,
+ &process_);
ASSERT_EQ(started, true);
if (use_existing_browser_) {
@@ -253,7 +252,7 @@ void UITest::LaunchBrowser(const std::wstring& arguments, bool clear_profile) {
user_data_dir_.c_str());
GetWindowThreadProcessId(hwnd, &pid);
// This mode doesn't work if we wound up launching a new browser ourselves.
- ASSERT_NE(pid, process_util::GetProcId(process_));
+ ASSERT_NE(pid, base::GetProcId(process_));
CloseHandle(process_);
process_ = OpenProcess(SYNCHRONIZE, false, pid);
}
@@ -317,9 +316,9 @@ void UITest::CleanupAppProcesses() {
// Make sure that no instances of the browser remain.
const int kExitTimeoutMs = 5000;
const int kExitCode = 1;
- process_util::CleanupProcesses(
- chrome::kBrowserProcessExecutableName, kExitTimeoutMs, kExitCode,
- &filter);
+ base::CleanupProcesses(
+ chrome::kBrowserProcessExecutableName, kExitTimeoutMs, kExitCode,
+ &filter);
// Suppress spammy failures that seem to be occurring when running
// the UI tests in single-process mode.
@@ -442,8 +441,8 @@ bool UITest::CrashAwareSleep(int time_out_ms) {
/*static*/
int UITest::GetBrowserProcessCount() {
BrowserProcessFilter filter(L"");
- return process_util::GetProcessCount(chrome::kBrowserProcessExecutableName,
- &filter);
+ return base::GetProcessCount(chrome::kBrowserProcessExecutableName,
+ &filter);
}
static DictionaryValue* LoadDictionaryValueFromPath(const std::wstring& path) {