Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: components/component_updater/BUILD.gn

Issue 1570873003: Adds a mock for component_updater::ComponentUpdateService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 source_set("component_updater") { 5 source_set("component_updater") {
6 sources = [ 6 sources = [
7 "component_updater_paths.cc", 7 "component_updater_paths.cc",
8 "component_updater_paths.h", 8 "component_updater_paths.h",
9 "component_updater_service.cc", 9 "component_updater_service.cc",
10 "component_updater_service.h", 10 "component_updater_service.h",
(...skipping 14 matching lines...) Expand all
25 25
26 deps = [ 26 deps = [
27 "//base", 27 "//base",
28 "//components/update_client", 28 "//components/update_client",
29 "//components/version_info", 29 "//components/version_info",
30 "//ui/base", 30 "//ui/base",
31 "//url", 31 "//url",
32 ] 32 ]
33 } 33 }
34 34
35 source_set("test_support") {
36 testonly = true
37 sources = [
38 "mock_component_updater_service.cc",
39 "mock_component_updater_service.h",
40 ]
41
42 public_deps = [
43 ":component_updater",
44 "//testing/gmock",
45 ]
46 }
47
35 source_set("unit_tests") { 48 source_set("unit_tests") {
36 testonly = true 49 testonly = true
37 sources = [ 50 sources = [
38 "component_updater_service_unittest.cc", 51 "component_updater_service_unittest.cc",
39 "timer_unittest.cc", 52 "timer_unittest.cc",
40 ] 53 ]
41 54
42 deps = [ 55 deps = [
43 ":component_updater", 56 ":component_updater",
44 "//base", 57 "//base",
45 "//base/test:test_support", 58 "//base/test:test_support",
46 "//components/update_client:test_support", 59 "//components/update_client:test_support",
47 "//testing/gmock", 60 "//testing/gmock",
48 "//testing/gtest", 61 "//testing/gtest",
49 ] 62 ]
50 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698