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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
8 test("setup_unittests") {
9 # TODO(robertshield): Move the items marked with "Move to lib"
10 # below into a separate lib and then link both setup.exe and
11 # setup_unittests.exe against that.
13 "../mini_installer/appid.h",
14 "../mini_installer/chrome.release", # Move to lib
15 "../mini_installer/chrome_appid.cc",
16 "../mini_installer/configuration.cc",
17 "../mini_installer/configuration.h",
18 "../mini_installer/configuration_test.cc",
19 "../mini_installer/decompress.cc",
20 "../mini_installer/decompress.h",
21 "../mini_installer/decompress_test.cc",
22 "../mini_installer/mini_string.cc",
23 "../mini_installer/mini_string.h",
24 "../mini_installer/mini_string_test.cc",
25 "app_launcher_installer.cc", # Move to lib
26 "app_launcher_installer.h", # Move to lib
27 "archive_patch_helper.cc", # Move to lib
28 "archive_patch_helper.h", # Move to lib
29 "archive_patch_helper_unittest.cc",
30 "install.cc", # Move to lib
31 "install.h", # Move to lib
32 "install_unittest.cc",
33 "install_worker.cc", # Move to lib
34 "install_worker.h", # Move to lib
35 "install_worker_unittest.cc",
36 "run_all_unittests.cc",
37 "setup_constants.cc", # Move to lib
38 "setup_constants.h", # Move to lib
40 "setup_util_unittest.cc",
41 "setup_util_unittest.h",
42 "update_active_setup_version_work_item.cc", # Move to lib
43 "update_active_setup_version_work_item.h", # Move to lib
44 "update_active_setup_version_work_item_unittest.cc",
50 "//base/test:test_support",
51 "//chrome/installer/util:strings",
52 "//chrome/installer/util:util",
57 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
58 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]