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",
26 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
27 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
29 defines = [ "SQL_IMPLEMENTATION" ]
33 "//third_party/sqlite",
34 "//base/third_party/dynamic_annotations",
38 source_set("test_support") {
41 "test/error_callback_support.cc",
42 "test/error_callback_support.h",
43 "test/scoped_error_ignorer.cc",
44 "test/scoped_error_ignorer.h",
45 "test/test_helpers.cc",
46 "test/test_helpers.h",
53 "//third_party/sqlite",
57 source_set("redirection_header") {
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
60 # us to switch out the gtest vs mojo:apptest frameworks.
61 check_includes = false
64 "correct_sql_test_base.h",
68 test("sql_unittests") {
70 "connection_unittest.cc",
71 "meta_table_unittest.cc",
72 "recovery_unittest.cc",
73 "sqlite_features_unittest.cc",
74 "statement_unittest.cc",
77 "test/run_all_unittests.cc",
78 "test/sql_test_base.cc",
79 "test/sql_test_base.h",
80 "test/sql_test_suite.cc",
81 "test/sql_test_suite.h",
82 "transaction_unittest.cc",
85 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
86 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
90 ":redirection_header",
93 "//base/test:test_support",
95 "//third_party/sqlite",
99 isolate_file = "sql_unittests.isolate"
103 #['OS == "android"', {
105 # '../testing/android/native_test.gyp:native_test_native_code',
112 #'target_name': 'sql_unittests_apk',
118 # 'test_suite_name': 'sql_unittests',
120 #'includes': [ '../build/apk_test.gypi' ],