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 "database_memory_dump_provider.cc",
12 "database_memory_dump_provider.h",
13 "error_delegate_util.cc",
14 "error_delegate_util.h",
18 "internal_api_token.h",
21 "recover_module/btree.cc",
22 "recover_module/btree.h",
23 "recover_module/cursor.cc",
24 "recover_module/cursor.h",
25 "recover_module/integers.cc",
26 "recover_module/integers.h",
27 "recover_module/module.cc",
28 "recover_module/module.h",
29 "recover_module/pager.cc",
30 "recover_module/pager.h",
31 "recover_module/parsing.cc",
32 "recover_module/parsing.h",
33 "recover_module/payload.cc",
34 "recover_module/payload.h",
35 "recover_module/record.cc",
36 "recover_module/record.h",
37 "recover_module/table.cc",
38 "recover_module/table.h",
43 "sql_memory_dump_provider.cc",
44 "sql_memory_dump_provider.h",
55 defines = [ "IS_SQL_IMPL" ]
59 "//base/third_party/dynamic_annotations",
60 "//third_party/sqlite",
63 # For vfs_wrapper.cc time-machine exclusions.
66 "CoreFoundation.framework",
67 "CoreServices.framework",
73 "vfs_wrapper_fuchsia.cc",
74 "vfs_wrapper_fuchsia.h",
79 static_library("test_support") {
82 "test/error_callback_support.cc",
83 "test/error_callback_support.h",
84 "test/scoped_error_expecter.cc",
85 "test/scoped_error_expecter.h",
86 "test/test_helpers.cc",
87 "test/test_helpers.h",
90 public_deps = [ ":sql" ]
94 "//third_party/sqlite",
98 bundle_data("sql_unittests_bundle_data") {
100 sources = [ "test/data/recovery_387868" ]
101 outputs = [ "{{bundle_resources_dir}}/" +
102 "{{source_root_relative_dir}}/{{source_file_part}}" ]
105 test("sql_unittests") {
107 "database_unittest.cc",
108 "meta_table_unittest.cc",
109 "recover_module/module_unittest.cc",
110 "recovery_unittest.cc",
111 "sql_memory_dump_provider_unittest.cc",
112 "sqlite_features_unittest.cc",
113 "statement_id_unittest.cc",
114 "statement_unittest.cc",
115 "test/database_test_peer.cc",
116 "test/database_test_peer.h",
119 "test/run_all_unittests.cc",
120 "test/sql_test_base.cc",
121 "test/sql_test_base.h",
122 "test/sql_test_suite.cc",
123 "test/sql_test_suite.h",
124 "transaction_unittest.cc",
127 data = [ "test/data/" ]
131 ":sql_unittests_bundle_data",
133 "//base/test:test_support",
135 "//third_party/sqlite",