| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 | 6 |
| 7 source_set("mojo") { | 7 source_set("mojo") { |
| 8 sources = [ | 8 sources = [ |
| 9 "mojo_vfs.cc", | 9 "mojo_vfs.cc", |
| 10 "mojo_vfs.h", | 10 "mojo_vfs.h", |
| 11 ] | 11 ] |
| 12 | 12 |
| 13 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 13 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 14 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 14 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 15 | 15 |
| 16 defines = [ "SQL_IMPLEMENTATION" ] | 16 defines = [ "SQL_IMPLEMENTATION" ] |
| 17 | 17 |
| 18 deps = [ | 18 deps = [ |
| 19 "//base", | 19 "//base", |
| 20 "//base/third_party/dynamic_annotations", | 20 "//base/third_party/dynamic_annotations", |
| 21 "//components/filesystem/public/interfaces", | 21 "//components/filesystem/public/interfaces", |
| 22 "//mojo/application/public/cpp", | |
| 23 "//mojo/common", | 22 "//mojo/common", |
| 24 "//mojo/platform_handle", | 23 "//mojo/platform_handle", |
| 24 "//mojo/shell/public/cpp", |
| 25 "//third_party/sqlite", | 25 "//third_party/sqlite", |
| 26 ] | 26 ] |
| 27 } | 27 } |
| 28 | 28 |
| 29 mojo_native_application("apptests") { | 29 mojo_native_application("apptests") { |
| 30 output_name = "sql_apptests" | 30 output_name = "sql_apptests" |
| 31 | 31 |
| 32 testonly = true | 32 testonly = true |
| 33 | 33 |
| 34 # Instead of using the code in //sql/test/sql_test_base.h, we should use the | 34 # Instead of using the code in //sql/test/sql_test_base.h, we should use the |
| 35 # mojo test base class. | 35 # mojo test base class. |
| 36 defines = [ "MOJO_APPTEST_IMPL" ] | 36 defines = [ "MOJO_APPTEST_IMPL" ] |
| 37 | 37 |
| 38 sources = [ | 38 sources = [ |
| 39 "../connection_unittest.cc", | 39 "../connection_unittest.cc", |
| 40 "../statement_unittest.cc", | 40 "../statement_unittest.cc", |
| 41 "../test/paths.cc", | 41 "../test/paths.cc", |
| 42 "../test/paths.h", | 42 "../test/paths.h", |
| 43 "../transaction_unittest.cc", | 43 "../transaction_unittest.cc", |
| 44 "sql_test_base.cc", | 44 "sql_test_base.cc", |
| 45 "sql_test_base.h", | 45 "sql_test_base.h", |
| 46 "vfs_unittest.cc", | 46 "vfs_unittest.cc", |
| 47 ] | 47 ] |
| 48 | 48 |
| 49 deps = [ | 49 deps = [ |
| 50 ":mojo", | 50 ":mojo", |
| 51 "//base", | 51 "//base", |
| 52 "//base/test:test_support", | 52 "//base/test:test_support", |
| 53 "//components/filesystem/public/interfaces", | 53 "//components/filesystem/public/interfaces", |
| 54 "//mojo/application/public/cpp:sources", | |
| 55 "//mojo/application/public/cpp:test_support", | |
| 56 "//mojo/public/cpp/bindings", | 54 "//mojo/public/cpp/bindings", |
| 55 "//mojo/shell/public/cpp:sources", |
| 56 "//mojo/shell/public/cpp:test_support", |
| 57 "//sql", | 57 "//sql", |
| 58 "//sql:redirection_header", | 58 "//sql:redirection_header", |
| 59 "//sql:test_support", | 59 "//sql:test_support", |
| 60 "//testing/gtest:gtest", | 60 "//testing/gtest:gtest", |
| 61 ] | 61 ] |
| 62 } | 62 } |
| OLD | NEW |