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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
11 "error_delegate_util.cc",
12 "error_delegate_util.h",
24 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
25 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
27 defines = [ "SQL_IMPLEMENTATION" ]
31 "//third_party/sqlite",
32 "//base/third_party/dynamic_annotations",
36 source_set("test_support") {
39 "test/error_callback_support.cc",
40 "test/error_callback_support.h",
41 "test/scoped_error_ignorer.cc",
42 "test/scoped_error_ignorer.h",
43 "test/test_helpers.cc",
44 "test/test_helpers.h",
51 "//third_party/sqlite",
55 source_set("redirection_header") {
56 # This target exists because we need a way to switch between
57 # "test/sql_test_base.h" and "mojo/sql_test_base.h" at compile time, to allow
58 # us to switch out the gtest vs mojo:apptest frameworks.
59 check_includes = false
62 "correct_sql_test_base.h",
66 # TODO(GYP): Delete this after we've converted everything to GN.
67 # The _run targets exist only for compatibility w/ GYP.
68 group("sql_unittests_run") {
75 test("sql_unittests") {
77 "connection_unittest.cc",
78 "meta_table_unittest.cc",
79 "recovery_unittest.cc",
80 "sqlite_features_unittest.cc",
81 "statement_unittest.cc",
84 "test/run_all_unittests.cc",
85 "test/sql_test_base.cc",
86 "test/sql_test_base.h",
87 "test/sql_test_suite.cc",
88 "test/sql_test_suite.h",
89 "transaction_unittest.cc",
96 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
97 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
101 ":redirection_header",
104 "//base/test:test_support",
106 "//third_party/sqlite",
110 isolate_file = "sql_unittests.isolate"
114 #['OS == "android"', {
116 # '../testing/android/native_test.gyp:native_test_native_code',
123 #'target_name': 'sql_unittests_apk',
129 # 'test_suite_name': 'sql_unittests',
131 #'includes': [ '../build/apk_test.gypi' ],