blob: 1b5b142a84f5919ddf62d693da103e4f8397a048 [file] [log] [blame]
[email protected]8b7e37e42014-07-22 00:36:201# Copyright 2014 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.
4
brettw77617612016-07-13 22:40:065static_library("component_updater") {
[email protected]8b7e37e42014-07-22 00:36:206 sources = [
7 "component_updater_paths.cc",
8 "component_updater_paths.h",
[email protected]de0fdca22014-08-19 05:26:099 "component_updater_service.cc",
10 "component_updater_service.h",
sorin7c717622015-05-26 19:59:0911 "component_updater_service_internal.h",
[email protected]8b7e37e42014-07-22 00:36:2012 "component_updater_switches.cc",
13 "component_updater_switches.h",
drogerf8a88142015-08-19 07:48:3614 "component_updater_url_constants.cc",
15 "component_updater_url_constants.h",
16 "configurator_impl.cc",
17 "configurator_impl.h",
[email protected]de0fdca22014-08-19 05:26:0918 "default_component_installer.cc",
19 "default_component_installer.h",
[email protected]8b7e37e42014-07-22 00:36:2020 "pref_names.cc",
21 "pref_names.h",
sorin7c717622015-05-26 19:59:0922 "timer.cc",
23 "timer.h",
sorineae115a2016-08-26 02:27:2024 "updater_state_win.cc",
25 "updater_state_win.h",
[email protected]8b7e37e42014-07-22 00:36:2026 ]
27
28 deps = [
29 "//base",
sorin39eab2f2015-01-06 01:09:0830 "//components/update_client",
drogerf8a88142015-08-19 07:48:3631 "//components/version_info",
[email protected]de0fdca22014-08-19 05:26:0932 "//ui/base",
brettw462851f72014-11-26 18:38:5533 "//url",
[email protected]8b7e37e42014-07-22 00:36:2034 ]
35}
sorin7c717622015-05-26 19:59:0936
brettw77617612016-07-13 22:40:0637static_library("test_support") {
robpercival3de53402016-01-12 16:29:0238 testonly = true
39 sources = [
40 "mock_component_updater_service.cc",
41 "mock_component_updater_service.h",
42 ]
43
44 public_deps = [
45 ":component_updater",
46 "//base",
47 "//testing/gmock",
48 ]
49}
50
sorin7c717622015-05-26 19:59:0951source_set("unit_tests") {
52 testonly = true
53 sources = [
54 "component_updater_service_unittest.cc",
sorin3dd028dc2016-07-26 00:06:3455 "configurator_impl_unittest.cc",
sorin6a57db92016-06-27 22:28:1556 "default_component_installer_unittest.cc",
sorin7c717622015-05-26 19:59:0957 "timer_unittest.cc",
sorineae115a2016-08-26 02:27:2058 "updater_state_unittest_win.cc",
sorin7c717622015-05-26 19:59:0959 ]
60
61 deps = [
62 ":component_updater",
63 "//base",
brettw41ac3412015-10-22 07:35:3064 "//base/test:test_support",
65 "//components/update_client:test_support",
sorin7c717622015-05-26 19:59:0966 "//testing/gmock",
agrieved7a71c882015-11-20 19:53:2867 "//testing/gtest",
sorin7c717622015-05-26 19:59:0968 ]
69}