| OLD | NEW |
| (Empty) |
| 1 import("//build_overrides/gtest.gni") | |
| 2 | |
| 3 config("gtest_direct_config") { | |
| 4 visibility = [ ":*" ] | |
| 5 defines = [ "UNIT_TEST" ] | |
| 6 } | |
| 7 | |
| 8 # The file/directory layout of Google Test is not yet considered stable. Until | |
| 9 # it stabilizes, Chromium code MUST use this target instead of reaching directly | |
| 10 # into //third_party/googletest. | |
| 11 source_set("gtest") { | |
| 12 testonly = true | |
| 13 sources = [ | |
| 14 "include/gtest/gtest-death-test.h", | |
| 15 "include/gtest/gtest-message.h", | |
| 16 "include/gtest/gtest-param-test.h", | |
| 17 "include/gtest/gtest-spi.h", | |
| 18 "include/gtest/gtest.h", | |
| 19 "include/gtest/gtest_prod.h", | |
| 20 ] | |
| 21 deps = [ | |
| 22 "//third_party/googletest:gtest", | |
| 23 ] | |
| 24 | |
| 25 public_configs = [ ":gtest_direct_config" ] | |
| 26 | |
| 27 if (gtest_include_multiprocess) { | |
| 28 sources += [ | |
| 29 "../multiprocess_func_list.cc", | |
| 30 "../multiprocess_func_list.h", | |
| 31 ] | |
| 32 } | |
| 33 | |
| 34 if (gtest_include_platform_test) { | |
| 35 sources += [ "../platform_test.h" ] | |
| 36 } | |
| 37 | |
| 38 if ((is_mac || is_ios) && gtest_include_objc_support) { | |
| 39 if (is_ios) { | |
| 40 set_sources_assignment_filter([]) | |
| 41 } | |
| 42 sources += [ | |
| 43 "../gtest_mac.h", | |
| 44 "../gtest_mac.mm", | |
| 45 ] | |
| 46 if (gtest_include_platform_test) { | |
| 47 sources += [ "../platform_test_mac.mm" ] | |
| 48 } | |
| 49 set_sources_assignment_filter(sources_assignment_filter) | |
| 50 } | |
| 51 | |
| 52 if (is_ios && gtest_include_ios_coverage) { | |
| 53 sources += [ | |
| 54 "../coverage_util_ios.cc", | |
| 55 "../coverage_util_ios.h", | |
| 56 ] | |
| 57 } | |
| 58 } | |
| 59 | |
| 60 # The file/directory layout of Google Test is not yet considered stable. Until | |
| 61 # it stabilizes, Chromium code MUST use this target instead of reaching directly | |
| 62 # into //third_party/googletest. | |
| 63 source_set("gtest_main") { | |
| 64 testonly = true | |
| 65 deps = [ | |
| 66 "//third_party/googletest:gtest_main", | |
| 67 ] | |
| 68 } | |
| OLD | NEW |