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

Unified Diff: content/test/BUILD.gn

Issue 1478633002: Removing references to //ppapi when is_android = true (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix analyze failure Created 5 years 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/shell/renderer/shell_content_renderer_client.cc ('k') | ppapi/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/BUILD.gn
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
index 674f7cf51752538cc4e6f470228390bb725592d6..54e9768dd2391efd37c1e7370685e34513f4dda5 100644
--- a/content/test/BUILD.gn
+++ b/content/test/BUILD.gn
@@ -56,7 +56,21 @@ source_set("test_support") {
"//url",
]
- if (!is_ios) {
+ if (is_ios) {
+ sources = [
+ "public/test/content_test_suite_base.cc",
+ "public/test/mock_notification_observer.cc",
+ "public/test/mock_resource_context.cc",
+ "public/test/test_browser_thread.cc",
+ "public/test/test_content_client_initializer.cc",
+ "public/test/test_notification_tracker.cc",
+ "public/test/test_utils.cc",
+ "public/test/unittest_test_suite.cc",
+ "test/content_test_suite.cc",
+ "test/test_content_browser_client.cc",
+ "test/test_content_client.cc",
+ ]
+ } else {
sources =
rebase_path(content_tests_gypi_values.test_support_content_sources,
".",
@@ -80,106 +94,94 @@ source_set("test_support") {
"//media",
"//mojo/application/public/cpp:cpp_for_chromium",
"//mojo/environment:chromium",
- "//ppapi/host",
- "//ppapi/proxy",
- "//ppapi/proxy:test_support",
- "//ppapi/shared_impl",
- "//ppapi/shared_impl:test_support",
"//storage/browser",
"//storage/common",
"//ui/compositor:test_support",
"//ui/surface",
"//v8",
]
+ }
- if (enable_plugins) {
- deps += [ "//content/ppapi_plugin" ]
- }
-
- if (enable_webrtc) {
- sources += [
- "../renderer/media/mock_data_channel_impl.cc",
- "../renderer/media/mock_data_channel_impl.h",
- "../renderer/media/mock_media_stream_dispatcher.cc",
- "../renderer/media/mock_media_stream_dispatcher.h",
- "../renderer/media/mock_peer_connection_impl.cc",
- "../renderer/media/mock_peer_connection_impl.h",
- "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
- "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
- "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
- "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
- ]
+ if (enable_plugins) {
+ deps += [
+ "//content/ppapi_plugin",
+ "//ppapi/host",
+ "//ppapi/proxy",
+ "//ppapi/proxy:test_support",
+ "//ppapi/shared_impl",
+ "//ppapi/shared_impl:test_support",
+ ]
+ } else if (!is_ios) {
+ sources -= [ "ppapi_unittest.cc" ]
+ }
- deps += [
- "//third_party/libjingle:libjingle_webrtc",
- "//third_party/libjingle:libpeerconnection",
- "//third_party/webrtc/modules/video_capture",
- ]
- }
- if (!enable_plugins) {
- sources -= [ "ppapi_unittest.cc" ]
- }
+ if (enable_webrtc) {
+ sources += [
+ "../renderer/media/mock_data_channel_impl.cc",
+ "../renderer/media/mock_data_channel_impl.h",
+ "../renderer/media/mock_media_stream_dispatcher.cc",
+ "../renderer/media/mock_media_stream_dispatcher.h",
+ "../renderer/media/mock_peer_connection_impl.cc",
+ "../renderer/media/mock_peer_connection_impl.h",
+ "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
+ "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
+ "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
+ "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
+ ]
- if (use_glib) {
- configs += [ "//build/config/linux:glib" ]
- }
+ deps += [
+ "//third_party/libjingle:libjingle_webrtc",
+ "//third_party/libjingle:libpeerconnection",
+ "//third_party/webrtc/modules/video_capture",
+ ]
+ }
- if (use_aura) {
- deps += [
- "//ui/aura:test_support",
- "//ui/resources:ui_test_pak",
- "//ui/wm",
- ]
- }
+ if (use_glib) {
+ configs += [ "//build/config/linux:glib" ]
+ }
- if (use_aura || is_mac) {
- deps += [
- "//third_party/libvpx_new",
- "//ui/compositor",
- ]
+ if (use_aura) {
+ deps += [
+ "//ui/aura:test_support",
+ "//ui/resources:ui_test_pak",
+ "//ui/wm",
+ ]
+ }
- sources += [
- "../browser/compositor/test/no_transport_image_transport_factory.cc",
- "../browser/compositor/test/no_transport_image_transport_factory.h",
- ]
- }
+ if (use_aura || is_mac) {
+ deps += [
+ "//third_party/libvpx_new",
+ "//ui/compositor",
+ ]
- if (use_ozone) {
- deps += [ "//ui/ozone" ]
- }
+ sources += [
+ "../browser/compositor/test/no_transport_image_transport_factory.cc",
+ "../browser/compositor/test/no_transport_image_transport_factory.h",
+ ]
+ }
- if (is_win) {
- deps += [
- "//content:sandbox_helper_win",
- "//third_party/iaccessible2",
- ]
- }
+ if (use_ozone) {
+ deps += [ "//ui/ozone" ]
+ }
- if (is_android && !use_aura) {
- deps += [
- "//ui/android",
- "//ui/shell_dialogs",
- ]
- }
+ if (is_win) {
+ deps += [
+ "//content:sandbox_helper_win",
+ "//third_party/iaccessible2",
+ ]
+ }
- if (is_win) {
- deps += [ "//sandbox" ]
- }
- } else { # is_ios
- sources = [
- "public/test/content_test_suite_base.cc",
- "public/test/mock_notification_observer.cc",
- "public/test/mock_resource_context.cc",
- "public/test/test_browser_thread.cc",
- "public/test/test_content_client_initializer.cc",
- "public/test/test_notification_tracker.cc",
- "public/test/test_utils.cc",
- "public/test/unittest_test_suite.cc",
- "test/content_test_suite.cc",
- "test/test_content_browser_client.cc",
- "test/test_content_client.cc",
+ if (is_android && !use_aura) {
+ deps += [
+ "//ui/android",
+ "//ui/shell_dialogs",
]
}
+
+ if (is_win) {
+ deps += [ "//sandbox" ]
+ }
+
if (v8_use_external_startup_data) {
deps += [ "//gin:gin" ]
}
@@ -382,10 +384,6 @@ test("content_browsertests") {
"//mojo/public/js",
"//mojo/test:test_support",
"//net:test_support",
- "//ppapi/host",
- "//ppapi/proxy",
- "//ppapi/proxy:ipc",
- "//ppapi/shared_impl",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/public:blink",
@@ -408,10 +406,19 @@ test("content_browsertests") {
]
data_deps = [
- "//ppapi:ppapi_tests",
"//third_party/mesa:osmesa",
]
+ if (enable_plugins) {
+ deps += [
+ "//ppapi/host",
+ "//ppapi/proxy",
+ "//ppapi/proxy:ipc",
+ "//ppapi/shared_impl",
+ ]
+ data_deps += [ "//ppapi:ppapi_tests" ]
+ }
+
if (is_win) {
sources +=
rebase_path(content_tests_gypi_values.content_browsertests_win_sources,
« no previous file with comments | « content/shell/renderer/shell_content_renderer_client.cc ('k') | ppapi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698