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

Unified Diff: content/public/test/unittest_test_suite.cc

Issue 10933091: Enable a minimal content/ build on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@rohits-image-change
Patch Set: Rebase 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 | « content/public/test/unittest_test_suite.h ('k') | content/test/test_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/unittest_test_suite.cc
diff --git a/content/public/test/unittest_test_suite.cc b/content/public/test/unittest_test_suite.cc
index 511a74dcd610771a1be201050b64426638a4edf3..636409ceed7863173e5140585cec3128ba0fc09a 100644
--- a/content/public/test/unittest_test_suite.cc
+++ b/content/public/test/unittest_test_suite.cc
@@ -13,6 +13,7 @@
namespace content {
+#if !defined(OS_IOS)
// A stubbed out WebKit platform support impl.
class UnitTestTestSuite::UnitTestWebKitPlatformSupport
: public WebKit::WebKitPlatformSupport {
@@ -37,16 +38,21 @@ class UnitTestTestSuite::UnitTestWebKitPlatformSupport
private:
webkit::WebCompositorSupportImpl compositor_support_;
};
+#endif // !OS_IOS
UnitTestTestSuite::UnitTestTestSuite(base::TestSuite* test_suite)
: test_suite_(test_suite) {
DCHECK(test_suite);
+#if !defined(OS_IOS)
webkit_platform_support_.reset(new UnitTestWebKitPlatformSupport);
WebKit::initialize(webkit_platform_support_.get());
+#endif
}
UnitTestTestSuite::~UnitTestTestSuite() {
+#if !defined(OS_IOS)
WebKit::shutdown();
+#endif
}
int UnitTestTestSuite::Run() {
« no previous file with comments | « content/public/test/unittest_test_suite.h ('k') | content/test/test_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698