OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 config("ced_config") { | 7 config("ced_config") { |
8 include_dirs = [ "src" ] | 8 include_dirs = [ "src" ] |
9 } | 9 } |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 defines = [ "COMPILER_MSVC" ] | 57 defines = [ "COMPILER_MSVC" ] |
58 cflags = [ | 58 cflags = [ |
59 "/wd4005", # Macro defined twice. | 59 "/wd4005", # Macro defined twice. |
60 "/wd4006", # #undef expected an identifier. | 60 "/wd4006", # #undef expected an identifier. |
61 "/wd4018", # '<': signed/unsigned mismatch | 61 "/wd4018", # '<': signed/unsigned mismatch |
62 "/wd4309", # Truncation of constant value. | 62 "/wd4309", # Truncation of constant value. |
63 ] | 63 ] |
64 } else { | 64 } else { |
65 defines = [ "COMPILER_GCC" ] | 65 defines = [ "COMPILER_GCC" ] |
66 } | 66 } |
| 67 |
| 68 defines += [ "HTML5_MODE" ] |
67 } | 69 } |
68 | 70 |
69 test("ced_unittests") { | 71 test("ced_unittests") { |
70 sources = [ | 72 sources = [ |
71 "src/compact_enc_det/compact_enc_det_fuzz_test.cc", | 73 "src/compact_enc_det/compact_enc_det_fuzz_test.cc", |
72 "src/compact_enc_det/compact_enc_det_unittest.cc", | 74 "src/compact_enc_det/compact_enc_det_unittest.cc", |
73 "src/compact_enc_det/detail_head_string.inc", | 75 "src/compact_enc_det/detail_head_string.inc", |
74 "src/util/encodings/encodings_unittest.cc", | 76 "src/util/encodings/encodings_unittest.cc", |
75 ] | 77 ] |
76 | 78 |
77 configs += [ ":ced_config_private" ] | 79 configs += [ ":ced_config_private" ] |
78 | 80 |
79 if (is_win) { | 81 if (is_win) { |
80 defines = [ "COMPILER_MSVC" ] | 82 defines = [ "COMPILER_MSVC" ] |
81 cflags = [ | 83 cflags = [ |
82 "/wd4310", # Truncation of constant value. | 84 "/wd4310", # Truncation of constant value. |
83 "/wd4267", # size_t -> int | 85 "/wd4267", # size_t -> int |
84 ] | 86 ] |
85 } else { | 87 } else { |
86 defines = [ "COMPILER_GCC" ] | 88 defines = [ "COMPILER_GCC" ] |
87 } | 89 } |
88 | 90 |
| 91 defines += [ "HTML5_MODE" ] |
| 92 |
89 deps = [ | 93 deps = [ |
90 ":ced", | 94 ":ced", |
91 "//testing/gtest", | 95 "//testing/gtest", |
92 "//testing/gtest:gtest_main", | 96 "//testing/gtest:gtest_main", |
93 ] | 97 ] |
94 } | 98 } |
OLD | NEW |