Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: sql/BUILD.gn

Issue 1248673005: Add GN isolate support for a bunch of unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@some_isolates
Patch Set: merge to HEAD Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « skia/BUILD.gn ('k') | testing/buildbot/gn_isolate_map.pyl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 # This target exists because we need a way to switch between 58 # This target exists because we need a way to switch between
59 # "test/sql_test_base.h" and "mojo/sql_test_base.h" at compile time, to allow 59 # "test/sql_test_base.h" and "mojo/sql_test_base.h" at compile time, to allow
60 # us to switch out the gtest vs mojo:apptest frameworks. 60 # us to switch out the gtest vs mojo:apptest frameworks.
61 check_includes = false 61 check_includes = false
62 62
63 sources = [ 63 sources = [
64 "correct_sql_test_base.h", 64 "correct_sql_test_base.h",
65 ] 65 ]
66 } 66 }
67 67
68 # TODO(GYP): Delete this after we've converted everything to GN.
69 # The _run targets exist only for compatibility w/ GYP.
70 group("sql_unittests_run") {
71 testonly = true
72 deps = [
73 ":sql_unittests",
74 ]
75 }
76
68 test("sql_unittests") { 77 test("sql_unittests") {
69 sources = [ 78 sources = [
70 "connection_unittest.cc", 79 "connection_unittest.cc",
71 "meta_table_unittest.cc", 80 "meta_table_unittest.cc",
72 "recovery_unittest.cc", 81 "recovery_unittest.cc",
73 "sqlite_features_unittest.cc", 82 "sqlite_features_unittest.cc",
74 "statement_unittest.cc", 83 "statement_unittest.cc",
75 "test/paths.cc", 84 "test/paths.cc",
76 "test/paths.h", 85 "test/paths.h",
77 "test/run_all_unittests.cc", 86 "test/run_all_unittests.cc",
78 "test/sql_test_base.cc", 87 "test/sql_test_base.cc",
79 "test/sql_test_base.h", 88 "test/sql_test_base.h",
80 "test/sql_test_suite.cc", 89 "test/sql_test_suite.cc",
81 "test/sql_test_suite.h", 90 "test/sql_test_suite.h",
82 "transaction_unittest.cc", 91 "transaction_unittest.cc",
83 ] 92 ]
84 93
94 data = [
95 "test/data/",
96 ]
97
85 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 98 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
86 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 99 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
87 100
88 deps = [ 101 deps = [
89 ":sql", 102 ":sql",
90 ":redirection_header", 103 ":redirection_header",
91 ":test_support", 104 ":test_support",
92 "//base/allocator", 105 "//base/allocator",
93 "//base/test:test_support", 106 "//base/test:test_support",
94 "//testing/gtest", 107 "//testing/gtest",
(...skipping 17 matching lines...) Expand all
112 #'target_name': 'sql_unittests_apk', 125 #'target_name': 'sql_unittests_apk',
113 #'type': 'none', 126 #'type': 'none',
114 #'dependencies': [ 127 #'dependencies': [
115 # 'sql_unittests', 128 # 'sql_unittests',
116 #], 129 #],
117 #'variables': { 130 #'variables': {
118 # 'test_suite_name': 'sql_unittests', 131 # 'test_suite_name': 'sql_unittests',
119 #}, 132 #},
120 #'includes': [ '../build/apk_test.gypi' ], 133 #'includes': [ '../build/apk_test.gypi' ],
121 } 134 }
OLDNEW
« no previous file with comments | « skia/BUILD.gn ('k') | testing/buildbot/gn_isolate_map.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698