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

Side by Side Diff: sql/BUILD.gn

Issue 1176653002: mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch cleanup now that gn check passes. Created 5 years, 6 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ] 47 ]
48 48
49 deps = [ 49 deps = [
50 ":sql", 50 ":sql",
51 "//base", 51 "//base",
52 "//testing/gtest", 52 "//testing/gtest",
53 "//third_party/sqlite", 53 "//third_party/sqlite",
54 ] 54 ]
55 } 55 }
56 56
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
62
63 sources = [
64 "correct_sql_test_base.h",
65 ]
66 }
67
57 test("sql_unittests") { 68 test("sql_unittests") {
58 sources = [ 69 sources = [
59 "connection_unittest.cc", 70 "connection_unittest.cc",
60 "meta_table_unittest.cc", 71 "meta_table_unittest.cc",
61 "recovery_unittest.cc", 72 "recovery_unittest.cc",
62 "sqlite_features_unittest.cc", 73 "sqlite_features_unittest.cc",
63 "statement_unittest.cc", 74 "statement_unittest.cc",
64 "test/paths.cc", 75 "test/paths.cc",
65 "test/paths.h", 76 "test/paths.h",
66 "test/run_all_unittests.cc", 77 "test/run_all_unittests.cc",
78 "test/sql_test_base.cc",
79 "test/sql_test_base.h",
67 "test/sql_test_suite.cc", 80 "test/sql_test_suite.cc",
68 "test/sql_test_suite.h", 81 "test/sql_test_suite.h",
69 "transaction_unittest.cc", 82 "transaction_unittest.cc",
70 ] 83 ]
71 84
72 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 85 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
73 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 86 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
74 87
75 deps = [ 88 deps = [
76 ":sql", 89 ":sql",
90 ":redirection_header",
77 ":test_support", 91 ":test_support",
78 "//base/allocator", 92 "//base/allocator",
79 "//base/test:test_support", 93 "//base/test:test_support",
80 "//testing/gtest", 94 "//testing/gtest",
81 "//third_party/sqlite", 95 "//third_party/sqlite",
82 ] 96 ]
83 97
84 if (is_android) { 98 if (is_android) {
85 isolate_file = "sql_unittests.isolate" 99 isolate_file = "sql_unittests.isolate"
86 } 100 }
(...skipping 11 matching lines...) Expand all
98 #'target_name': 'sql_unittests_apk', 112 #'target_name': 'sql_unittests_apk',
99 #'type': 'none', 113 #'type': 'none',
100 #'dependencies': [ 114 #'dependencies': [
101 # 'sql_unittests', 115 # 'sql_unittests',
102 #], 116 #],
103 #'variables': { 117 #'variables': {
104 # 'test_suite_name': 'sql_unittests', 118 # 'test_suite_name': 'sql_unittests',
105 #}, 119 #},
106 #'includes': [ '../build/apk_test.gypi' ], 120 #'includes': [ '../build/apk_test.gypi' ],
107 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698