Chromium Code Reviews| Index: Source/wtf/tests/RunAllTests.cpp |
| diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/wtf/tests/RunAllTests.cpp |
| similarity index 82% |
| copy from Source/core/loader/UniqueIdentifier.cpp |
| copy to Source/wtf/tests/RunAllTests.cpp |
| index 0ad56563e3e214a67acd8c53decb085ad4250cb9..b35160810475ffeaea6aeb76e7dcfebb968dce05 100644 |
| --- a/Source/core/loader/UniqueIdentifier.cpp |
| +++ b/Source/wtf/tests/RunAllTests.cpp |
| @@ -28,17 +28,20 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#include "config.h" |
| -#include "core/loader/UniqueIdentifier.h" |
| +#include "wtf/CurrentTime.h" |
| +#include "wtf/Threading.h" |
| +#include <gmock/gmock.h> |
| +#include <gtest/gtest.h> |
| -namespace WebCore { |
| - |
| -static unsigned long s_uniqueIdentifier = 0; |
| - |
| -unsigned long createUniqueIdentifier() |
| +static double CurrentTime() |
| { |
| - return ++s_uniqueIdentifier; |
| + return 0.0; |
|
darin (slow to review)
2013/05/25 22:56:00
Should there be an assertion that this is never ca
|
| } |
| -} // namespace WebCore |
| - |
| +int main(int argc, char** argv) |
| +{ |
| + ::testing::InitGoogleMock(&argc, argv); |
| + WTF::setCurrentTimeFunction(CurrentTime); |
| + WTF::initializeThreading(); |
| + return RUN_ALL_TESTS(); |
| +} |