"/wd4344",
# Conversion from 'size_t' to 'type'.
"/wd4267",
+ # dtoa, icu, etc. like doing assignment within conditional.
+ "/wd4706",
]
if (component_mode == "shared_library") {
test("wtf_unittests") {
sources = gypi_values.wtf_unittest_files
+ sources += [ "testing/RunAllTests.cpp" ]
+
if (is_win) {
cflags = [
"/wd4068", # Unknown pragma.
configs += [ "//third_party/WebKit/Source:config", ]
deps = [
- ":run_all_tests",
- ":unittest_helpers",
+ ":test_support",
":wtf",
"//base",
"//base/allocator",
- "//testing/gmock",
- "//testing/gtest",
- ]
-}
-
-source_set("run_all_tests") {
- sources = [
- "testing/RunAllTests.cpp",
- ]
-
- configs += [
- ":wtf_config",
- "//third_party/WebKit/Source:config",
- "//third_party/WebKit/Source:non_test_config",
- ]
-
- deps = [
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
-component("unittest_helpers") {
+component("test_support") {
+ output_name = "wtf_test_support"
sources = gypi_values.wtf_unittest_helper_files
defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ]