OLD | NEW |
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 component("sql") { | 5 component("sql") { |
6 sources = [ | 6 sources = [ |
7 "connection.cc", | 7 "connection.cc", |
8 "connection.h", | 8 "connection.h", |
9 "error_delegate_util.cc", | 9 "error_delegate_util.cc", |
10 "error_delegate_util.h", | 10 "error_delegate_util.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ] | 49 ] |
50 } | 50 } |
51 | 51 |
52 test("sql_unittests") { | 52 test("sql_unittests") { |
53 sources = [ | 53 sources = [ |
54 "connection_unittest.cc", | 54 "connection_unittest.cc", |
55 "meta_table_unittest.cc", | 55 "meta_table_unittest.cc", |
56 "recovery_unittest.cc", | 56 "recovery_unittest.cc", |
57 "sqlite_features_unittest.cc", | 57 "sqlite_features_unittest.cc", |
58 "statement_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", |
59 "transaction_unittest.cc", | 64 "transaction_unittest.cc", |
60 ] | 65 ] |
61 | 66 |
62 if (is_win) { | 67 if (is_win) { |
63 cflags = [ "/wd4267" ] # size_t -> int | 68 cflags = [ "/wd4267" ] # size_t -> int |
64 } | 69 } |
65 | 70 |
66 deps = [ | 71 deps = [ |
67 ":sql", | 72 ":sql", |
68 ":test_support", | 73 ":test_support", |
69 "//base/allocator", | 74 "//base/allocator", |
70 "//base/test:run_all_unittests", | 75 "//base/test:test_support", |
71 "//testing/gtest", | 76 "//testing/gtest", |
72 "//third_party/sqlite", | 77 "//third_party/sqlite", |
73 ] | 78 ] |
74 | 79 |
75 # TODO(GYP) | 80 # TODO(GYP) |
76 #['OS == "android"', { | 81 #['OS == "android"', { |
77 # 'dependencies': [ | 82 # 'dependencies': [ |
78 # '../testing/android/native_test.gyp:native_test_native_code', | 83 # '../testing/android/native_test.gyp:native_test_native_code', |
79 # ], | 84 # ], |
80 #}], | 85 #}], |
81 } | 86 } |
82 | 87 |
83 if (is_android) { | 88 if (is_android) { |
84 #TODO(GYP) | 89 #TODO(GYP) |
85 #'target_name': 'sql_unittests_apk', | 90 #'target_name': 'sql_unittests_apk', |
86 #'type': 'none', | 91 #'type': 'none', |
87 #'dependencies': [ | 92 #'dependencies': [ |
88 # 'sql_unittests', | 93 # 'sql_unittests', |
89 #], | 94 #], |
90 #'variables': { | 95 #'variables': { |
91 # 'test_suite_name': 'sql_unittests', | 96 # 'test_suite_name': 'sql_unittests', |
92 #}, | 97 #}, |
93 #'includes': [ '../build/apk_test.gypi' ], | 98 #'includes': [ '../build/apk_test.gypi' ], |
94 } | 99 } |
OLD | NEW |