Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / installer / test / BUILD.gn
blob2f5dfc27ffe8905c66da009ce76c8bffe257c92a
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")
7 assert(is_win)
9 executable("alternate_version_generator") {
10   testonly = true
11   sources = [
12     "alternate_version_generator_main.cc",
13   ]
15   deps = [
16     ":alternate_version_generator_lib",
17     "//base",
18     "//base/test:test_support",
19     "//build/config/sanitizers:deps",
20     "//chrome/common:constants",
21     "//chrome/installer/util",
22     "//testing/gtest",
23   ]
26 source_set("alternate_version_generator_lib") {
27   testonly = true
28   sources = [
29     "alternate_version_generator.cc",
30     "alternate_version_generator.h",
31     "pe_image_resources.cc",
32     "pe_image_resources.h",
33     "resource_loader.cc",
34     "resource_loader.h",
35     "resource_updater.cc",
36     "resource_updater.h",
37   ]
38   deps = [
39     "//base",
40     "//base:base_static",
41     "//chrome/installer/util",
42     "//chrome/common:constants",
43   ]
46 test("upgrade_test") {
47   sources = [
48     "run_all_tests.cc",
49     "upgrade_test.cc",
50   ]
51   deps = [
52     ":alternate_version_generator_lib",
53     "//base",
54     "//base/test:test_support",
55     "//chrome/common:constants",
56     "//chrome/installer/util",
57     "//testing/gtest",
58   ]
59   data_deps = [
60     # 'mini_installer.gyp:mini_installer',  TODO(GYP)
61   ]