| 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};
|
|
|