OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 static_library("open_from_clipboard") { | 5 static_library("open_from_clipboard") { |
6 sources = [ | 6 sources = [ |
7 "clipboard_recent_content.cc", | 7 "clipboard_recent_content.cc", |
8 "clipboard_recent_content.h", | 8 "clipboard_recent_content.h", |
9 "clipboard_recent_content_ios.h", | 9 "clipboard_recent_content_ios.h", |
10 "clipboard_recent_content_ios.mm", | 10 "clipboard_recent_content_ios.mm", |
11 ] | 11 ] |
12 | 12 |
| 13 if (!is_ios) { |
| 14 sources += [ |
| 15 "clipboard_recent_content_generic.cc", |
| 16 "clipboard_recent_content_generic.h", |
| 17 ] |
| 18 } |
| 19 |
13 deps = [ | 20 deps = [ |
14 "//base", | 21 "//base", |
| 22 "//ui/base:base", |
15 "//url", | 23 "//url", |
16 ] | 24 ] |
17 } | 25 } |
18 | 26 |
19 static_library("test_support") { | 27 static_library("test_support") { |
20 testonly = true | 28 testonly = true |
21 sources = [ | 29 sources = [ |
22 "fake_clipboard_recent_content.cc", | 30 "fake_clipboard_recent_content.cc", |
23 "fake_clipboard_recent_content.h", | 31 "fake_clipboard_recent_content.h", |
24 ] | 32 ] |
25 | 33 |
26 deps = [ | 34 deps = [ |
27 ":open_from_clipboard", | 35 ":open_from_clipboard", |
28 "//base", | 36 "//base", |
29 "//url", | 37 "//url", |
30 ] | 38 ] |
31 } | 39 } |
32 | 40 |
33 source_set("unit_tests") { | 41 source_set("unit_tests") { |
34 testonly = true | 42 testonly = true |
35 sources = [ | 43 sources = [ |
36 "clipboard_recent_content_ios_unittest.mm", | 44 "clipboard_recent_content_ios_unittest.mm", |
37 ] | 45 ] |
38 | 46 |
| 47 if (!is_ios) { |
| 48 sources += [ "clipboard_recent_content_generic_unittest.cc" ] |
| 49 } |
| 50 |
39 deps = [ | 51 deps = [ |
40 ":open_from_clipboard", | 52 ":open_from_clipboard", |
41 "//base", | 53 "//base", |
42 "//testing/gtest", | 54 "//testing/gtest", |
| 55 "//ui/base:test_support", |
| 56 "//url", |
43 ] | 57 ] |
44 } | 58 } |
OLD | NEW |