| OLD | NEW | 
|---|
|  | (Empty) | 
| 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 |  | 
| 3 # found in the LICENSE file. |  | 
| 4 |  | 
| 5 config("gtest_config") { |  | 
| 6   visibility = [ ":*" ]  # gmock also shares this config. |  | 
| 7 |  | 
| 8   defines = [ |  | 
| 9     # In order to allow regex matches in gtest to be shared between Windows |  | 
| 10     # and other systems, we tell gtest to always use its internal engine. |  | 
| 11     "GTEST_HAS_POSIX_RE=0", |  | 
| 12     "GTEST_LANG_CXX11=1", |  | 
| 13   ] |  | 
| 14 |  | 
| 15   # Gtest headers need to be able to find themselves. |  | 
| 16   include_dirs = [ "src/googletest/include" ] |  | 
| 17 |  | 
| 18   if (is_win) { |  | 
| 19     cflags = [ "/wd4800" ]  # Unused variable warning. |  | 
| 20   } |  | 
| 21 } |  | 
| 22 |  | 
| 23 config("gtest_warnings") { |  | 
| 24   if (is_win && is_clang) { |  | 
| 25     # The Mutex constructor initializer list in gtest-port.cc is incorrectly |  | 
| 26     # ordered. See |  | 
| 27     # https://groups.google.com/d/msg/googletestframework/S5uSV8L2TX8/U1FaTDa6J6
     sJ. |  | 
| 28     cflags = [ "-Wno-reorder" ] |  | 
| 29   } |  | 
| 30 } |  | 
| 31 |  | 
| 32 config("gmock_config") { |  | 
| 33   # Gmock headers need to be able to find themselves. |  | 
| 34   include_dirs = [ |  | 
| 35     "gmock_custom", |  | 
| 36     "src/googlemock/include", |  | 
| 37   ] |  | 
| 38 } |  | 
| 39 |  | 
| 40 # Do NOT depend on this directly. Use //testing/gtest instead. |  | 
| 41 # See README.chromium for details. |  | 
| 42 source_set("gtest") { |  | 
| 43   testonly = true |  | 
| 44   sources = [ |  | 
| 45     "src/googletest/include/gtest/gtest-death-test.h", |  | 
| 46     "src/googletest/include/gtest/gtest-message.h", |  | 
| 47     "src/googletest/include/gtest/gtest-param-test.h", |  | 
| 48     "src/googletest/include/gtest/gtest-printers.h", |  | 
| 49     "src/googletest/include/gtest/gtest-spi.h", |  | 
| 50     "src/googletest/include/gtest/gtest-test-part.h", |  | 
| 51     "src/googletest/include/gtest/gtest-typed-test.h", |  | 
| 52     "src/googletest/include/gtest/gtest.h", |  | 
| 53     "src/googletest/include/gtest/gtest_pred_impl.h", |  | 
| 54     "src/googletest/include/gtest/internal/gtest-death-test-internal.h", |  | 
| 55     "src/googletest/include/gtest/internal/gtest-filepath.h", |  | 
| 56     "src/googletest/include/gtest/internal/gtest-internal.h", |  | 
| 57     "src/googletest/include/gtest/internal/gtest-linked_ptr.h", |  | 
| 58     "src/googletest/include/gtest/internal/gtest-param-util-generated.h", |  | 
| 59     "src/googletest/include/gtest/internal/gtest-param-util.h", |  | 
| 60     "src/googletest/include/gtest/internal/gtest-port.h", |  | 
| 61     "src/googletest/include/gtest/internal/gtest-string.h", |  | 
| 62     "src/googletest/include/gtest/internal/gtest-tuple.h", |  | 
| 63     "src/googletest/include/gtest/internal/gtest-type-util.h", |  | 
| 64 |  | 
| 65     #"src/googletest/src/gtest-all.cc",  # Not needed by our build. |  | 
| 66     "src/googletest/src/gtest-death-test.cc", |  | 
| 67     "src/googletest/src/gtest-filepath.cc", |  | 
| 68     "src/googletest/src/gtest-internal-inl.h", |  | 
| 69     "src/googletest/src/gtest-port.cc", |  | 
| 70     "src/googletest/src/gtest-printers.cc", |  | 
| 71     "src/googletest/src/gtest-test-part.cc", |  | 
| 72     "src/googletest/src/gtest-typed-test.cc", |  | 
| 73     "src/googletest/src/gtest.cc", |  | 
| 74   ] |  | 
| 75 |  | 
| 76   # Some files include "src/gtest-internal-inl.h". |  | 
| 77   include_dirs = [ "src/googletest" ] |  | 
| 78 |  | 
| 79   all_dependent_configs = [ ":gtest_config" ] |  | 
| 80 |  | 
| 81   configs -= [ "//build/config/compiler:chromium_code" ] |  | 
| 82   configs += [ |  | 
| 83     "//build/config/compiler:no_chromium_code", |  | 
| 84 |  | 
| 85     # Must be after no_chromium_code for warning flags to be ordered correctly. |  | 
| 86     ":gtest_warnings", |  | 
| 87   ] |  | 
| 88 } |  | 
| 89 |  | 
| 90 # Do NOT depend on this directly. Use //testing/gtest:gtest_main instead. |  | 
| 91 # See README.chromium for details. |  | 
| 92 source_set("gtest_main") { |  | 
| 93   testonly = true |  | 
| 94   sources = [ |  | 
| 95     "src/googletest/src/gtest_main.cc", |  | 
| 96   ] |  | 
| 97   deps = [ |  | 
| 98     ":gtest", |  | 
| 99   ] |  | 
| 100 } |  | 
| 101 |  | 
| 102 # Do NOT depend on this directly. Use //testing/gmock:gmock_main instead. |  | 
| 103 # See README.chromium for details. |  | 
| 104 source_set("gmock") { |  | 
| 105   testonly = true |  | 
| 106   sources = [ |  | 
| 107     "src/googlemock/include/gmock/gmock-actions.h", |  | 
| 108     "src/googlemock/include/gmock/gmock-cardinalities.h", |  | 
| 109     "src/googlemock/include/gmock/gmock-generated-actions.h", |  | 
| 110     "src/googlemock/include/gmock/gmock-generated-function-mockers.h", |  | 
| 111     "src/googlemock/include/gmock/gmock-generated-matchers.h", |  | 
| 112     "src/googlemock/include/gmock/gmock-generated-nice-strict.h", |  | 
| 113     "src/googlemock/include/gmock/gmock-matchers.h", |  | 
| 114     "src/googlemock/include/gmock/gmock-spec-builders.h", |  | 
| 115     "src/googlemock/include/gmock/gmock.h", |  | 
| 116     "src/googlemock/include/gmock/internal/gmock-generated-internal-utils.h", |  | 
| 117     "src/googlemock/include/gmock/internal/gmock-internal-utils.h", |  | 
| 118     "src/googlemock/include/gmock/internal/gmock-port.h", |  | 
| 119 |  | 
| 120     # gmock helpers. |  | 
| 121     "gmock_custom/gmock/internal/custom/gmock-port.h", |  | 
| 122 |  | 
| 123     #"src/googlemock/src/gmock-all.cc",  # Not needed by our build. |  | 
| 124     "src/googlemock/src/gmock-cardinalities.cc", |  | 
| 125     "src/googlemock/src/gmock-internal-utils.cc", |  | 
| 126     "src/googlemock/src/gmock-matchers.cc", |  | 
| 127     "src/googlemock/src/gmock-spec-builders.cc", |  | 
| 128     "src/googlemock/src/gmock.cc", |  | 
| 129   ] |  | 
| 130 |  | 
| 131   # This project includes some stuff form gtest's guts. |  | 
| 132   include_dirs = [ "src/googletest/include" ] |  | 
| 133 |  | 
| 134   public_configs = [ |  | 
| 135     ":gmock_config", |  | 
| 136     ":gtest_config", |  | 
| 137   ] |  | 
| 138 } |  | 
| 139 |  | 
| 140 # Do NOT depend on this directly. Use //testing/gmock:gmock_main instead. |  | 
| 141 # See README.chromium for details. |  | 
| 142 static_library("gmock_main") { |  | 
| 143   testonly = true |  | 
| 144   sources = [ |  | 
| 145     "src/googlemock/src/gmock_main.cc", |  | 
| 146   ] |  | 
| 147   deps = [ |  | 
| 148     ":gmock", |  | 
| 149   ] |  | 
| 150 } |  | 
| OLD | NEW | 
|---|