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

Unified Diff: chrome/test/mini_installer_test/mini_installer_test_util.cc

Issue 6001010: Move platform_thread to base/threading and put in the base namespace. I left ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/mini_installer_test/chrome_mini_installer.cc ('k') | chrome/test/reliability/page_load_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/mini_installer_test/mini_installer_test_util.cc
===================================================================
--- chrome/test/mini_installer_test/mini_installer_test_util.cc (revision 70328)
+++ chrome/test/mini_installer_test/mini_installer_test_util.cc (working copy)
@@ -6,10 +6,10 @@
#include "base/file_util.h"
#include "base/path_service.h"
-#include "base/platform_thread.h"
#include "base/process_util.h"
#include "base/string_util.h"
#include "base/test/test_timeouts.h"
+#include "base/threading/platform_thread.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "chrome/installer/util/logging_installer.h"
@@ -36,7 +36,7 @@
while ((base::GetProcessCount(executable_name, NULL) > 0) &&
(timer < 20000)) {
base::KillProcesses(executable_name, 1, NULL);
- PlatformThread::Sleep(200);
+ base::PlatformThread::Sleep(200);
timer = timer + 200;
}
ASSERT_EQ(0, base::GetProcessCount(executable_name, NULL));
@@ -49,7 +49,7 @@
HWND hndl = FindWindow(NULL, window_name);
while (hndl == NULL && (timer < 60000)) {
hndl = FindWindow(NULL, window_name);
- PlatformThread::Sleep(200);
+ base::PlatformThread::Sleep(200);
timer = timer + 200;
}
if (hndl != NULL) {
@@ -274,7 +274,7 @@
while ((base::GetProcessCount(process_name, NULL) == 0) &&
(timer < wait_time)) {
- PlatformThread::Sleep(200);
+ base::PlatformThread::Sleep(200);
timer = timer + 200;
}
@@ -291,7 +291,7 @@
VLOG(1) << "Waiting for this process to end: " << process_name;
while ((base::GetProcessCount(process_name, NULL) > 0) &&
(timer < TestTimeouts::large_test_timeout_ms())) {
- PlatformThread::Sleep(200);
+ base::PlatformThread::Sleep(200);
timer = timer + 200;
}
} else {
« no previous file with comments | « chrome/test/mini_installer_test/chrome_mini_installer.cc ('k') | chrome/test/reliability/page_load_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698