OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 component("sql") { | 7 component("sql") { |
8 sources = [ | 8 sources = [ |
9 "connection.cc", | 9 "connection.cc", |
10 "connection.h", | 10 "connection.h", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 # This target exists because we need a way to switch between | 62 # This target exists because we need a way to switch between |
63 # "test/sql_test_base.h" and "mojo/sql_test_base.h" at compile time, to allow | 63 # "test/sql_test_base.h" and "mojo/sql_test_base.h" at compile time, to allow |
64 # us to switch out the gtest vs mojo:apptest frameworks. | 64 # us to switch out the gtest vs mojo:apptest frameworks. |
65 check_includes = false | 65 check_includes = false |
66 | 66 |
67 sources = [ | 67 sources = [ |
68 "correct_sql_test_base.h", | 68 "correct_sql_test_base.h", |
69 ] | 69 ] |
70 } | 70 } |
71 | 71 |
| 72 # TODO(GYP): Delete this after we've converted everything to GN. |
| 73 # The _run targets exist only for compatibility w/ GYP. |
| 74 group("sql_unittests_run") { |
| 75 testonly = true |
| 76 deps = [ |
| 77 ":sql_unittests", |
| 78 ] |
| 79 } |
| 80 |
72 test("sql_unittests") { | 81 test("sql_unittests") { |
73 sources = [ | 82 sources = [ |
74 "connection_unittest.cc", | 83 "connection_unittest.cc", |
75 "meta_table_unittest.cc", | 84 "meta_table_unittest.cc", |
76 "recovery_unittest.cc", | 85 "recovery_unittest.cc", |
77 "sql_memory_dump_provider_unittest.cc", | 86 "sql_memory_dump_provider_unittest.cc", |
78 "sqlite_features_unittest.cc", | 87 "sqlite_features_unittest.cc", |
79 "statement_unittest.cc", | 88 "statement_unittest.cc", |
80 "test/paths.cc", | 89 "test/paths.cc", |
81 "test/paths.h", | 90 "test/paths.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 #'target_name': 'sql_unittests_apk', | 129 #'target_name': 'sql_unittests_apk', |
121 #'type': 'none', | 130 #'type': 'none', |
122 #'dependencies': [ | 131 #'dependencies': [ |
123 # 'sql_unittests', | 132 # 'sql_unittests', |
124 #], | 133 #], |
125 #'variables': { | 134 #'variables': { |
126 # 'test_suite_name': 'sql_unittests', | 135 # 'test_suite_name': 'sql_unittests', |
127 #}, | 136 #}, |
128 #'includes': [ '../build/apk_test.gypi' ], | 137 #'includes': [ '../build/apk_test.gypi' ], |
129 } | 138 } |
OLD | NEW |