OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 } | 7 } |
8 | 8 |
9 source_set("background_loader") { | 9 source_set("background_loader") { |
10 sources = [ | 10 sources = [ |
11 "background_loader_contents.cc", | 11 "background_loader_contents.cc", |
12 "background_loader_contents.h", | 12 "background_loader_contents.h", |
13 ] | 13 ] |
14 | 14 |
15 deps = [ | 15 deps = [ |
16 "//content/public/browser", | 16 "//content/public/browser", |
17 "//url", | 17 "//url", |
18 ] | 18 ] |
19 } | 19 } |
20 | 20 |
| 21 source_set("test_support") { |
| 22 testonly = true |
| 23 |
| 24 sources = [ |
| 25 "background_loader_contents_stub.cc", |
| 26 "background_loader_contents_stub.h", |
| 27 ] |
| 28 |
| 29 deps = [ |
| 30 ":background_loader", |
| 31 "//content/test:test_support", |
| 32 ] |
| 33 } |
| 34 |
21 source_set("unit_tests") { | 35 source_set("unit_tests") { |
22 testonly = true | 36 testonly = true |
23 sources = [ | 37 sources = [ |
24 "background_loader_contents_unittest.cc", | 38 "background_loader_contents_unittest.cc", |
25 ] | 39 ] |
26 deps = [ | 40 deps = [ |
27 ":background_loader", | 41 ":background_loader", |
28 "//base", | 42 "//base", |
29 "//content/test:test_support", | 43 "//content/test:test_support", |
30 "//testing/gtest", | 44 "//testing/gtest", |
31 ] | 45 ] |
32 } | 46 } |
OLD | NEW |