chromium/chrome/installer/test/BUILD.gn

# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/symlink.gni")
import("//testing/test.gni")
assert(is_win)

executable("alternate_version_generator") {
  testonly = true
  sources = [ "alternate_version_generator_main.cc" ]

  deps = [
    ":alternate_version_generator_lib",
    "//base",
    "//base/test:test_support",
    "//build/win:default_exe_manifest",
    "//chrome/common:constants",
    "//chrome/installer/util:with_rc_strings",
    "//testing/gtest",
  ]
}

static_library("alternate_version_generator_lib") {
  testonly = true
  sources = [
    "alternate_version_generator.cc",
    "alternate_version_generator.h",
    "pe_image_resources.cc",
    "pe_image_resources.h",
    "resource_loader.cc",
    "resource_loader.h",
    "resource_updater.cc",
    "resource_updater.h",
  ]
  deps = [
    "//base",
    "//base:base_static",
    "//chrome/common:constants",
    "//chrome/installer/util:with_rc_strings",
  ]
}

test("upgrade_test") {
  sources = [
    "run_all_tests.cc",
    "upgrade_test.cc",
  ]
  deps = [
    ":alternate_version_generator_lib",
    "//base",
    "//base/test:test_support",
    "//chrome/common:constants",
    "//chrome/installer/util:with_rc_strings",
    "//testing/gtest",
  ]
  data_deps = [ "//chrome/installer/mini_installer" ]
}