| 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 source_set("os_crypt") { | 7 source_set("os_crypt") { |
| 8 sources = [ | 8 sources = [ |
| 9 "ie7_password_win.cc", | 9 "ie7_password_win.cc", |
| 10 "ie7_password_win.h", | 10 "ie7_password_win.h", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 sources += [ | 47 sources += [ |
| 48 "libsecret_util_posix.cc", | 48 "libsecret_util_posix.cc", |
| 49 "libsecret_util_posix.h", | 49 "libsecret_util_posix.h", |
| 50 ] | 50 ] |
| 51 configs += [ "//build/config/linux:glib" ] | 51 configs += [ "//build/config/linux:glib" ] |
| 52 deps += [ "//third_party/libsecret" ] | 52 deps += [ "//third_party/libsecret" ] |
| 53 defines = [ "USE_LIBSECRET" ] | 53 defines = [ "USE_LIBSECRET" ] |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 | 56 |
| 57 source_set("test_support") { |
| 58 testonly = true |
| 59 sources = [ |
| 60 "os_crypt_mocker.cc", |
| 61 "os_crypt_mocker.h", |
| 62 ] |
| 63 deps = [ |
| 64 ":os_crypt", |
| 65 "//base", |
| 66 ] |
| 67 if (is_desktop_linux && use_glib) { |
| 68 deps += [ "//third_party/libsecret" ] |
| 69 defines = [ "USE_LIBSECRET" ] |
| 70 } |
| 71 } |
| 72 |
| 57 source_set("unit_tests") { | 73 source_set("unit_tests") { |
| 58 testonly = true | 74 testonly = true |
| 59 sources = [ | 75 sources = [ |
| 60 "ie7_password_win_unittest.cc", | 76 "ie7_password_win_unittest.cc", |
| 61 "keychain_password_mac_unittest.mm", | 77 "keychain_password_mac_unittest.mm", |
| 62 "os_crypt_unittest.cc", | 78 "os_crypt_unittest.cc", |
| 63 ] | 79 ] |
| 64 deps = [ | 80 deps = [ |
| 65 ":os_crypt", | 81 ":os_crypt", |
| 82 ":test_support", |
| 66 "//base", | 83 "//base", |
| 67 "//crypto", | 84 "//crypto", |
| 68 "//testing/gtest", | 85 "//testing/gtest", |
| 69 ] | 86 ] |
| 87 |
| 88 if (is_desktop_linux && use_glib) { |
| 89 deps += [ "//third_party/libsecret" ] |
| 90 defines = [ "USE_LIBSECRET" ] |
| 91 } |
| 70 } | 92 } |
| OLD | NEW |