| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 group("mojom") { | 7 group("mojom") { |
| 8 testonly = true | 8 testonly = true |
| 9 deps = [ | |
| 10 ":tests", | |
| 11 ] | |
| 12 if (is_linux && defined(go_build_tool) && go_build_tool != "") { | 9 if (is_linux && defined(go_build_tool) && go_build_tool != "") { |
| 13 deps += [ "//mojom/mojom_parser" ] | 10 deps = [ |
| 11 "//mojom/mojom_parser", |
| 12 ] |
| 14 } | 13 } |
| 15 } | 14 } |
| 16 | |
| 17 group("tests") { | |
| 18 testonly = true | |
| 19 deps = [ | |
| 20 ":lexer_unittest", | |
| 21 ] | |
| 22 } | |
| 23 | |
| 24 test("lexer_unittest") { | |
| 25 sources = [ | |
| 26 "lexer_unittest.cc", | |
| 27 ] | |
| 28 | |
| 29 deps = [ | |
| 30 "//base", | |
| 31 "//base/test:run_all_unittests", | |
| 32 "//testing/gtest", | |
| 33 ":lexer", | |
| 34 ] | |
| 35 } | |
| 36 | |
| 37 source_set("lexer") { | |
| 38 sources = [ | |
| 39 "lexer.cc", | |
| 40 "lexer.h", | |
| 41 ] | |
| 42 | |
| 43 deps = [ | |
| 44 "//base", | |
| 45 ] | |
| 46 } | |
| OLD | NEW |