From ce072a7181ea5d58133e33654133236f5d9f5551 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Fri, 31 Dec 2010 20:02:16 +0000 Subject: Move platform_thread to base/threading and put in the base namespace. I left a stub and "using" declarations in the old location to avoid having to change the entire project at once. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6001010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70342 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/webdriver/commands/find_element_commands.cc | 3 ++- chrome/test/webdriver/server.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/test/webdriver') diff --git a/chrome/test/webdriver/commands/find_element_commands.cc b/chrome/test/webdriver/commands/find_element_commands.cc index acda1393..d208a00 100644 --- a/chrome/test/webdriver/commands/find_element_commands.cc +++ b/chrome/test/webdriver/commands/find_element_commands.cc @@ -8,6 +8,7 @@ #include #include "base/string_number_conversions.h" +#include "base/threading/platform_thread.h" #include "base/utf_string_conversions.h" #include "base/values.h" #include "third_party/webdriver/atoms.h" @@ -100,7 +101,7 @@ void FindElementCommand::ExecutePost(Response* const response) { int64 elapsed_time = (base::Time::Now() - start_time).InMilliseconds(); done = done || elapsed_time > session_->implicit_wait(); - PlatformThread::Sleep(50); // Prevent a busy loop that eats the cpu. + base::PlatformThread::Sleep(50); // Prevent a busy loop that eats the cpu. } response->set_value(result); diff --git a/chrome/test/webdriver/server.cc b/chrome/test/webdriver/server.cc index 4760928..6409524 100644 --- a/chrome/test/webdriver/server.cc +++ b/chrome/test/webdriver/server.cc @@ -19,6 +19,7 @@ #include "base/logging.h" #include "base/scoped_ptr.h" #include "base/string_util.h" +#include "base/threading/platform_thread.h" #include "base/utf_string_conversions.h" #include "chrome/test/webdriver/dispatch.h" @@ -129,7 +130,7 @@ int main(int argc, char *argv[]) { std::cout << "Starting server on port: " << port << std::endl; // The default behavior is to run this service forever. while (true) - PlatformThread::Sleep(3600); + base::PlatformThread::Sleep(3600); // We should not reach here since the service should never quit. // TODO(jmikhail): register a listener for SIGTERM and break the -- cgit v1.1