OLD | NEW |
---|---|
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("os_crypt") { | 5 source_set("os_crypt") { |
6 sources = [ | 6 sources = [ |
7 "ie7_password_win.cc", | 7 "ie7_password_win.cc", |
8 "ie7_password_win.h", | 8 "ie7_password_win.h", |
9 "keychain_password_mac.h", | 9 "keychain_password_mac.h", |
10 "keychain_password_mac.mm", | 10 "keychain_password_mac.mm", |
(...skipping 24 matching lines...) Expand all Loading... | |
35 "os_crypt_mac.mm", | 35 "os_crypt_mac.mm", |
36 ] | 36 ] |
37 set_sources_assignment_filter(sources_assignment_filter) | 37 set_sources_assignment_filter(sources_assignment_filter) |
38 } | 38 } |
39 | 39 |
40 if (is_win) { | 40 if (is_win) { |
41 libs = [ "crypt32.lib" ] | 41 libs = [ "crypt32.lib" ] |
42 } | 42 } |
43 | 43 |
44 if (is_desktop_linux) { | 44 if (is_desktop_linux) { |
45 sources -= [ "os_crypt_posix.cc" ] | |
45 sources += [ | 46 sources += [ |
46 "libsecret_util_posix.cc", | 47 "key_storage_libsecret.cc", |
47 "libsecret_util_posix.h", | 48 "key_storage_libsecret.h", |
49 "key_storage_linux.cc", | |
50 "key_storage_linux.h", | |
51 "libsecret_util_linux.cc", | |
52 "libsecret_util_linux.h", | |
53 "os_crypt_linux.cc", | |
48 ] | 54 ] |
49 configs += [ "//build/config/linux:glib" ] | 55 configs += [ "//build/config/linux:glib" ] |
50 deps += [ "//third_party/libsecret" ] | 56 deps += [ "//third_party/libsecret" ] |
51 defines = [ "USE_LIBSECRET" ] | 57 defines = [ "USE_LIBSECRET" ] |
52 } | 58 } |
53 } | 59 } |
54 | 60 |
55 source_set("unit_tests") { | 61 source_set("unit_tests") { |
56 testonly = true | 62 testonly = true |
57 sources = [ | 63 sources = [ |
58 "ie7_password_win_unittest.cc", | 64 "ie7_password_win_unittest.cc", |
59 "keychain_password_mac_unittest.mm", | 65 "keychain_password_mac_unittest.mm", |
60 "os_crypt_unittest.cc", | 66 "os_crypt_unittest.cc", |
61 ] | 67 ] |
62 deps = [ | 68 deps = [ |
63 ":os_crypt", | 69 ":os_crypt", |
64 "//base", | 70 "//base", |
65 "//crypto", | 71 "//crypto", |
66 "//testing/gtest", | 72 "//testing/gtest", |
67 ] | 73 ] |
74 | |
75 if (is_desktop_linux) { | |
76 sources += [ | |
Lei Zhang
2016/05/19 22:45:38
Can we have components/components_tests.gyp follow
cfroussios
2016/05/20 16:44:52
In components/components_tests.gyp, the mock is in
| |
77 "key_storage_mock.cc", | |
78 "key_storage_mock.h", | |
79 "os_crypt_util_linux_unittest.cc", | |
80 ] | |
81 deps += [ "//third_party/libsecret" ] | |
82 defines = [ "USE_LIBSECRET" ] | |
83 } | |
68 } | 84 } |
OLD | NEW |