Delete PrintingUIWebContentsObserver on UI thread.
[chromium-blink-merge.git] / sql / BUILD.gn
blob2029dc374eb6be430edaf0d170386ba6d78070f3
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 component("sql") {
6   sources = [
7     "connection.cc",
8     "connection.h",
9     "error_delegate_util.cc",
10     "error_delegate_util.h",
11     "init_status.h",
12     "meta_table.cc",
13     "meta_table.h",
14     "recovery.cc",
15     "recovery.h",
16     "statement.cc",
17     "statement.h",
18     "transaction.cc",
19     "transaction.h",
20   ]
22   defines = [ "SQL_IMPLEMENTATION" ]
24   if (is_win) {
25     cflags = [ "/wd4267" ]  # size_t to int.
26   }
28   deps = [
29     "//base",
30     "//third_party/sqlite",
31     "//base/third_party/dynamic_annotations",
32   ]
35 source_set("test_support") {
36   sources = [
37     "test/error_callback_support.cc",
38     "test/error_callback_support.h",
39     "test/scoped_error_ignorer.cc",
40     "test/scoped_error_ignorer.h",
41     "test/test_helpers.cc",
42     "test/test_helpers.h",
43   ]
45   deps = [
46     ":sql",
47     "//base",
48     "//testing/gtest",
49   ]
52 test("sql_unittests") {
53   sources = [
54     "connection_unittest.cc",
55     "meta_table_unittest.cc",
56     "recovery_unittest.cc",
57     "sqlite_features_unittest.cc",
58     "statement_unittest.cc",
59     "test/paths.cc",
60     "test/paths.h",
61     "test/run_all_unittests.cc",
62     "test/sql_test_suite.cc",
63     "test/sql_test_suite.h",
64     "transaction_unittest.cc",
65   ]
67   if (is_win) {
68     cflags = [ "/wd4267" ]  # size_t -> int
69   }
71   deps = [
72     ":sql",
73     ":test_support",
74     "//base/allocator",
75     "//base/test:test_support",
76     "//testing/gtest",
77     "//third_party/sqlite",
78   ]
80   # TODO(GYP)
81   #['OS == "android"', {
82   #  'dependencies': [
83   #    '../testing/android/native_test.gyp:native_test_native_code',
84   #  ],
85   #}],
88 if (is_android) {
89   #TODO(GYP)
90   #'target_name': 'sql_unittests_apk',
91   #'type': 'none',
92   #'dependencies': [
93   #  'sql_unittests',
94   #],
95   #'variables': {
96   #  'test_suite_name': 'sql_unittests',
97   #},
98   #'includes': [ '../build/apk_test.gypi' ],