summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-31 20:02:16 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-31 20:02:16 +0000
commitce072a7181ea5d58133e33654133236f5d9f5551 (patch)
tree1b1c903fec3fd27038cd17cb4ae9ca17d3736e40 /chrome/test/webdriver
parenta8e2058011129cbef38bf89834ee01715556b392 (diff)
downloadchromium_src-ce072a7181ea5d58133e33654133236f5d9f5551.zip
chromium_src-ce072a7181ea5d58133e33654133236f5d9f5551.tar.gz
chromium_src-ce072a7181ea5d58133e33654133236f5d9f5551.tar.bz2
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
Diffstat (limited to 'chrome/test/webdriver')
-rw-r--r--chrome/test/webdriver/commands/find_element_commands.cc3
-rw-r--r--chrome/test/webdriver/server.cc3
2 files changed, 4 insertions, 2 deletions
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 <string>
#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