OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
6 # ====================================== | 6 # ====================================== |
7 # | 7 # |
8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
10 # it from the sources list in that case | 10 # it from the sources list in that case |
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1586 ] | 1586 ] |
1587 libs = [ | 1587 libs = [ |
1588 "cfgmgr32.lib", | 1588 "cfgmgr32.lib", |
1589 "shell32.lib", | 1589 "shell32.lib", |
1590 ] | 1590 ] |
1591 deps = [ | 1591 deps = [ |
1592 "//build/config/sanitizers:deps", | 1592 "//build/config/sanitizers:deps", |
1593 ] | 1593 ] |
1594 } | 1594 } |
1595 | 1595 |
1596 shared_library("scoped_handle_test_dll") { | |
1597 sources = [ | |
1598 "win/scoped_handle_test_dll.cc", | |
1599 ] | |
1600 deps = [ | |
1601 ":base", | |
Nico
2016/03/11 23:26:58
...you really want to link base into your test dll
Will Harris
2016/03/12 00:00:01
yes, because I need to test behavior of base's act
| |
1602 ] | |
1603 } | |
1604 | |
1596 if (target_cpu == "x64") { | 1605 if (target_cpu == "x64") { |
1597 # Must be a shared library so that it can be unloaded during testing. | 1606 # Must be a shared library so that it can be unloaded during testing. |
1598 shared_library("base_profiler_test_support_library") { | 1607 shared_library("base_profiler_test_support_library") { |
1599 sources = [ | 1608 sources = [ |
1600 "profiler/test_support_library.cc", | 1609 "profiler/test_support_library.cc", |
1601 ] | 1610 ] |
1602 deps = [ | 1611 deps = [ |
1603 "//build/config/sanitizers:deps", | 1612 "//build/config/sanitizers:deps", |
1604 ] | 1613 ] |
1605 } | 1614 } |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1949 if (is_android) { | 1958 if (is_android) { |
1950 deps += [ "//testing/android/native_test:native_test_native_code" ] | 1959 deps += [ "//testing/android/native_test:native_test_native_code" ] |
1951 set_sources_assignment_filter([]) | 1960 set_sources_assignment_filter([]) |
1952 sources += [ | 1961 sources += [ |
1953 "debug/proc_maps_linux_unittest.cc", | 1962 "debug/proc_maps_linux_unittest.cc", |
1954 "trace_event/trace_event_android_unittest.cc", | 1963 "trace_event/trace_event_android_unittest.cc", |
1955 ] | 1964 ] |
1956 set_sources_assignment_filter(sources_assignment_filter) | 1965 set_sources_assignment_filter(sources_assignment_filter) |
1957 } | 1966 } |
1958 | 1967 |
1959 if (is_win && target_cpu == "x64") { | 1968 if (is_win) { |
1960 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 1969 deps += [ "//base:scoped_handle_test_dll" ] |
Nico
2016/03/11 23:26:58
is this a dll loaded by tests? does it need to be
Will Harris
2016/03/12 00:00:01
once I changed this to loadable_library then isola
| |
1961 deps += [ ":base_profiler_test_support_library" ] | 1970 if (target_cpu == "x64") { |
1971 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | |
1972 deps += [ ":base_profiler_test_support_library" ] | |
1973 } | |
1962 } | 1974 } |
1963 | 1975 |
1964 if (use_experimental_allocator_shim) { | 1976 if (use_experimental_allocator_shim) { |
1965 sources += [ "allocator/allocator_shim_unittest.cc" ] | 1977 sources += [ "allocator/allocator_shim_unittest.cc" ] |
1966 } | 1978 } |
1967 | 1979 |
1968 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1980 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1969 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1981 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1970 | 1982 |
1971 # Symbols for crashes when running tests on swarming. | 1983 # Symbols for crashes when running tests on swarming. |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2168 | 2180 |
2169 # GYP: //base.gyp:base_java_unittest_support | 2181 # GYP: //base.gyp:base_java_unittest_support |
2170 android_library("base_java_unittest_support") { | 2182 android_library("base_java_unittest_support") { |
2171 deps = [ | 2183 deps = [ |
2172 ":base_java", | 2184 ":base_java", |
2173 ] | 2185 ] |
2174 java_files = | 2186 java_files = |
2175 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2187 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2176 } | 2188 } |
2177 } | 2189 } |
OLD | NEW |