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

Unified Diff: chrome/browser/sync/util/highres_timer_unittest.cc

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/util/highres_timer-win32.cc ('k') | chrome/browser/sync/util/highres_timer_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/highres_timer_unittest.cc
===================================================================
--- chrome/browser/sync/util/highres_timer_unittest.cc (revision 26149)
+++ chrome/browser/sync/util/highres_timer_unittest.cc (working copy)
@@ -5,6 +5,7 @@
// High resolution timer unit tests.
#include "base/basictypes.h"
+#include "build/build_config.h"
#include "chrome/browser/sync/util/highres_timer.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -30,7 +31,7 @@
HighresTimer timer;
EXPECT_EQ(0, timer.GetElapsedSec());
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
::Sleep(250);
#else
struct timespec ts1 = {0, 250000000};
@@ -39,7 +40,7 @@
EXPECT_EQ(0, timer.GetElapsedSec());
EXPECT_LE(230, timer.GetElapsedMs());
EXPECT_GE(270, timer.GetElapsedMs());
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
::Sleep(251);
#else
struct timespec ts2 = {0, 251000000};
« no previous file with comments | « chrome/browser/sync/util/highres_timer-win32.cc ('k') | chrome/browser/sync/util/highres_timer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698