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

Side by Side Diff: sql/BUILD.gn

Issue 1811633002: [iOS] Define bundle_data target for //sql:sql_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bundle_data("sql_unittests_bundle_data") {
73 sources = [
74 "test/data",
Dirk Pranke 2016/03/16 22:03:42 nit: please use a trailing slash, assuming that wo
sdefresne 2016/03/17 17:54:00 Will be addressed once https://bugs.chromium.org/p
75 ]
76 outputs = [
77 "{{bundle_resources_dir}}/" +
78 "{{source_root_relative_dir}}/{{source_file_part}}",
79 ]
80 }
81
72 test("sql_unittests") { 82 test("sql_unittests") {
73 sources = [ 83 sources = [
74 "connection_unittest.cc", 84 "connection_unittest.cc",
75 "meta_table_unittest.cc", 85 "meta_table_unittest.cc",
76 "recovery_unittest.cc", 86 "recovery_unittest.cc",
77 "sql_memory_dump_provider_unittest.cc", 87 "sql_memory_dump_provider_unittest.cc",
78 "sqlite_features_unittest.cc", 88 "sqlite_features_unittest.cc",
79 "statement_unittest.cc", 89 "statement_unittest.cc",
80 "test/paths.cc", 90 "test/paths.cc",
81 "test/paths.h", 91 "test/paths.h",
82 "test/run_all_unittests.cc", 92 "test/run_all_unittests.cc",
83 "test/sql_test_base.cc", 93 "test/sql_test_base.cc",
84 "test/sql_test_base.h", 94 "test/sql_test_base.h",
85 "test/sql_test_suite.cc", 95 "test/sql_test_suite.cc",
86 "test/sql_test_suite.h", 96 "test/sql_test_suite.h",
87 "transaction_unittest.cc", 97 "transaction_unittest.cc",
88 ] 98 ]
89 99
90 data = [ 100 data = [
91 "test/data/", 101 "test/data/",
92 ] 102 ]
93 103
94 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 104 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
95 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 105 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
96 106
97 deps = [ 107 deps = [
98 ":redirection_header", 108 ":redirection_header",
99 ":sql", 109 ":sql",
110 ":sql_unittests_bundle_data",
100 ":test_support", 111 ":test_support",
101 "//base/test:test_support", 112 "//base/test:test_support",
102 "//testing/gtest", 113 "//testing/gtest",
103 "//third_party/sqlite", 114 "//third_party/sqlite",
104 ] 115 ]
105 116
106 if (is_android) { 117 if (is_android) {
107 isolate_file = "sql_unittests.isolate" 118 isolate_file = "sql_unittests.isolate"
108 } 119 }
109 120
110 # TODO(GYP) 121 # TODO(GYP)
111 #['OS == "android"', { 122 #['OS == "android"', {
112 # 'dependencies': [ 123 # 'dependencies': [
113 # '../testing/android/native_test.gyp:native_test_native_code', 124 # '../testing/android/native_test.gyp:native_test_native_code',
114 # ], 125 # ],
115 #}], 126 #}],
116
117 # TODO(GYP): dep on copy_test_data_ios action.
118 } 127 }
119 128
120 if (is_android) { 129 if (is_android) {
121 #TODO(GYP) 130 #TODO(GYP)
122 #'target_name': 'sql_unittests_apk', 131 #'target_name': 'sql_unittests_apk',
123 #'type': 'none', 132 #'type': 'none',
124 #'dependencies': [ 133 #'dependencies': [
125 # 'sql_unittests', 134 # 'sql_unittests',
126 #], 135 #],
127 #'variables': { 136 #'variables': {
128 # 'test_suite_name': 'sql_unittests', 137 # 'test_suite_name': 'sql_unittests',
129 #}, 138 #},
130 #'includes': [ '../build/apk_test.gypi' ], 139 #'includes': [ '../build/apk_test.gypi' ],
131 } 140 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698