Index: webkit/compositor_bindings/test/run_all_unittests.cc |
diff --git a/webkit/compositor/test/run_all_unittests.cc b/webkit/compositor_bindings/test/run_all_unittests.cc |
similarity index 79% |
rename from webkit/compositor/test/run_all_unittests.cc |
rename to webkit/compositor_bindings/test/run_all_unittests.cc |
index de5b1c6279dbd2bfb7b6232a82d450c387f881a1..d6c4ba09688c6533095c21652e1184b81bbfbca3 100644 |
--- a/webkit/compositor/test/run_all_unittests.cc |
+++ b/webkit/compositor_bindings/test/run_all_unittests.cc |
@@ -4,14 +4,21 @@ |
#include <base/test/test_suite.h> |
#include <gmock/gmock.h> |
+ |
+#if defined(USE_LIBCC_FOR_COMPOSITOR) |
#include <webkit/support/webkit_support.h> |
+#endif |
int main(int argc, char** argv) { |
::testing::InitGoogleMock(&argc, argv); |
TestSuite testSuite(argc, argv); |
+#if defined(USE_LIBCC_FOR_COMPOSITOR) |
webkit_support::SetUpTestEnvironmentForUnitTests(); |
+#endif |
int result = testSuite.Run(); |
+#if defined(USE_LIBCC_FOR_COMPOSITOR) |
webkit_support::TearDownTestEnvironment(); |
+#endif |
return result; |
} |