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

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: Rebase on origin/master 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 testonly = true
74 sources = [
75 "test/data",
76 ]
77 outputs = [
78 "{{bundle_resources_dir}}/" +
79 "{{source_root_relative_dir}}/{{source_file_part}}",
80 ]
81 }
82
72 test("sql_unittests") { 83 test("sql_unittests") {
73 sources = [ 84 sources = [
74 "connection_unittest.cc", 85 "connection_unittest.cc",
75 "meta_table_unittest.cc", 86 "meta_table_unittest.cc",
76 "recovery_unittest.cc", 87 "recovery_unittest.cc",
77 "sql_memory_dump_provider_unittest.cc", 88 "sql_memory_dump_provider_unittest.cc",
78 "sqlite_features_unittest.cc", 89 "sqlite_features_unittest.cc",
79 "statement_unittest.cc", 90 "statement_unittest.cc",
80 "test/paths.cc", 91 "test/paths.cc",
81 "test/paths.h", 92 "test/paths.h",
82 "test/run_all_unittests.cc", 93 "test/run_all_unittests.cc",
83 "test/sql_test_base.cc", 94 "test/sql_test_base.cc",
84 "test/sql_test_base.h", 95 "test/sql_test_base.h",
85 "test/sql_test_suite.cc", 96 "test/sql_test_suite.cc",
86 "test/sql_test_suite.h", 97 "test/sql_test_suite.h",
87 "transaction_unittest.cc", 98 "transaction_unittest.cc",
88 ] 99 ]
89 100
90 data = [ 101 data = [
91 "test/data/", 102 "test/data/",
92 ] 103 ]
93 104
94 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 105 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
95 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 106 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
96 107
97 deps = [ 108 deps = [
98 ":redirection_header", 109 ":redirection_header",
99 ":sql", 110 ":sql",
111 ":sql_unittests_bundle_data",
100 ":test_support", 112 ":test_support",
101 "//base/test:test_support", 113 "//base/test:test_support",
102 "//testing/gtest", 114 "//testing/gtest",
103 "//third_party/sqlite", 115 "//third_party/sqlite",
104 ] 116 ]
105 117
106 if (is_android) { 118 if (is_android) {
107 isolate_file = "sql_unittests.isolate" 119 isolate_file = "sql_unittests.isolate"
108 } 120 }
109 121
110 # TODO(GYP) 122 # TODO(GYP)
111 #['OS == "android"', { 123 #['OS == "android"', {
112 # 'dependencies': [ 124 # 'dependencies': [
113 # '../testing/android/native_test.gyp:native_test_native_code', 125 # '../testing/android/native_test.gyp:native_test_native_code',
114 # ], 126 # ],
115 #}], 127 #}],
116
117 # TODO(GYP): dep on copy_test_data_ios action.
118 } 128 }
119 129
120 if (is_android) { 130 if (is_android) {
121 #TODO(GYP) 131 #TODO(GYP)
122 #'target_name': 'sql_unittests_apk', 132 #'target_name': 'sql_unittests_apk',
123 #'type': 'none', 133 #'type': 'none',
124 #'dependencies': [ 134 #'dependencies': [
125 # 'sql_unittests', 135 # 'sql_unittests',
126 #], 136 #],
127 #'variables': { 137 #'variables': {
128 # 'test_suite_name': 'sql_unittests', 138 # 'test_suite_name': 'sql_unittests',
129 #}, 139 #},
130 #'includes': [ '../build/apk_test.gypi' ], 140 #'includes': [ '../build/apk_test.gypi' ],
131 } 141 }
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