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

Side by Side Diff: chrome/test/BUILD.gn

Issue 1004323003: Add support for sending protobuf messages over IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zip
Patch Set: remove todo and enable for cros Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 "//chrome:strings", 210 "//chrome:strings",
211 "//chrome/browser", 211 "//chrome/browser",
212 "//chrome/common", 212 "//chrome/common",
213 "//mojo/environment:chromium", 213 "//mojo/environment:chromium",
214 "//third_party/mojo/src/mojo/edk/system", 214 "//third_party/mojo/src/mojo/edk/system",
215 ] 215 ]
216 } 216 }
217 217
218 if (!is_android) { 218 if (!is_android) {
219 import("//chrome/chrome_tests.gni") 219 import("//chrome/chrome_tests.gni")
220 import("//third_party/protobuf/proto_library.gni")
221
222 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto
223 proto_library("test_proto") {
224 sources = [
225 "../common/safe_browsing/ipc_protobuf_message_test.proto",
226 ]
227 }
220 228
221 test("interactive_ui_tests") { 229 test("interactive_ui_tests") {
222 sources = 230 sources =
223 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources, 231 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources,
224 ".", 232 ".",
225 "//chrome") 233 "//chrome")
226 234
227 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 235 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
228 ldflags = [] 236 ldflags = []
229 237
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 ] 1452 ]
1445 } 1453 }
1446 } 1454 }
1447 if (safe_browsing_mode == 1) { 1455 if (safe_browsing_mode == 1) {
1448 # TODO(sgurun): enable tests for safe_browsing==2. 1456 # TODO(sgurun): enable tests for safe_browsing==2.
1449 sources += rebase_path( 1457 sources += rebase_path(
1450 unit_gypi_values.chrome_unit_tests_full_safe_browsing_sources, 1458 unit_gypi_values.chrome_unit_tests_full_safe_browsing_sources,
1451 ".", 1459 ".",
1452 "//chrome") 1460 "//chrome")
1453 defines += [ "FULL_SAFE_BROWSING" ] 1461 defines += [ "FULL_SAFE_BROWSING" ]
1462 deps += [ ":test_proto" ]
1454 if (is_chromeos) { 1463 if (is_chromeos) {
1455 sources -= [ "../browser/safe_browsing/download_protection_service_unitt est.cc" ] 1464 sources -= [ "../browser/safe_browsing/download_protection_service_unitt est.cc" ]
1456 } else if (is_android) { 1465 } else if (is_android) {
1466 deps -= [ ":test_proto" ]
1457 sources -= [ 1467 sources -= [
1458 # Android doesn't support download feedbacks. 1468 # Android doesn't support download feedbacks.
1459 "../browser/safe_browsing/download_feedback_service_unittest.cc", 1469 "../browser/safe_browsing/download_feedback_service_unittest.cc",
1460 "../browser/safe_browsing/download_feedback_unittest.cc", 1470 "../browser/safe_browsing/download_feedback_unittest.cc",
1461 "../browser/safe_browsing/download_protection_service_unittest.cc", 1471 "../browser/safe_browsing/download_protection_service_unittest.cc",
1462 "../browser/safe_browsing/two_phase_uploader_unittest.cc", 1472 "../browser/safe_browsing/two_phase_uploader_unittest.cc",
1473 "../common/safe_browsing/ipc_protobuf_message_test_messages.h",
1474 "../common/safe_browsing/ipc_protobuf_message_unittest.cc",
1463 ] 1475 ]
1464 } 1476 }
1465 } 1477 }
1466 if (enable_autofill_dialog && !is_android) { 1478 if (enable_autofill_dialog && !is_android) {
1467 sources += rebase_path( 1479 sources += rebase_path(
1468 unit_gypi_values.chrome_unit_tests_autofill_dialog_sources, 1480 unit_gypi_values.chrome_unit_tests_autofill_dialog_sources,
1469 ".", 1481 ".",
1470 "//chrome") 1482 "//chrome")
1471 } 1483 }
1472 if (enable_plugins) { 1484 if (enable_plugins) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 } 1692 }
1681 if (use_ozone) { 1693 if (use_ozone) {
1682 # crbug.com/354036 1694 # crbug.com/354036
1683 sources -= [ "../browser/chromeos/events/event_rewriter_unittest.cc" ] 1695 sources -= [ "../browser/chromeos/events/event_rewriter_unittest.cc" ]
1684 } 1696 }
1685 if (!enable_plugin_installation) { 1697 if (!enable_plugin_installation) {
1686 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] 1698 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ]
1687 } 1699 }
1688 } 1700 }
1689 } 1701 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698