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

Unified Diff: webkit/compositor_bindings/test/run_all_unittests.cc

Issue 10918281: Enable webkit_compositor_bindings_unittests in component builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « webkit/compositor_bindings/compositor_bindings_tests.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/test/run_all_unittests.cc
diff --git a/webkit/compositor_bindings/test/run_all_unittests.cc b/webkit/compositor_bindings/test/run_all_unittests.cc
index d6c4ba09688c6533095c21652e1184b81bbfbca3..a8a5cbd8312152113ffd61ed6a91ccf0539a0923 100644
--- a/webkit/compositor_bindings/test/run_all_unittests.cc
+++ b/webkit/compositor_bindings/test/run_all_unittests.cc
@@ -2,23 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <base/test/test_suite.h>
+#include "base/message_loop.h"
+#include "base/test/test_suite.h"
+#include "cc/test/test_webkit_platform.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/Platform.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
+ cc::TestWebKitPlatform platform;
+ MessageLoop message_loop;
+ WebKit::Platform::initialize(&platform);
int result = testSuite.Run();
-#if defined(USE_LIBCC_FOR_COMPOSITOR)
- webkit_support::TearDownTestEnvironment();
-#endif
return result;
}
« no previous file with comments | « webkit/compositor_bindings/compositor_bindings_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698