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

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

Issue 2010463002: Mocker for OSCrypt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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
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 sources = [
vabr (Chromium) 2016/05/24 13:33:44 Please also use: testonly = true
cfroussios 2016/05/25 13:13:09 Done.
59 "os_crypt_mocker.cc",
60 "os_crypt_mocker.h",
61 ]
62 deps = [
63 ":os_crypt",
64 "//base",
65 ]
66 if (is_desktop_linux && use_glib) {
67 deps += [ "//third_party/libsecret" ]
68 defines = [ "USE_LIBSECRET" ]
69 }
70 }
71
57 source_set("unit_tests") { 72 source_set("unit_tests") {
58 testonly = true 73 testonly = true
59 sources = [ 74 sources = [
60 "ie7_password_win_unittest.cc", 75 "ie7_password_win_unittest.cc",
61 "keychain_password_mac_unittest.mm", 76 "keychain_password_mac_unittest.mm",
62 "os_crypt_unittest.cc", 77 "os_crypt_unittest.cc",
63 ] 78 ]
64 deps = [ 79 deps = [
65 ":os_crypt", 80 ":os_crypt",
81 ":test_support",
66 "//base", 82 "//base",
67 "//crypto", 83 "//crypto",
68 "//testing/gtest", 84 "//testing/gtest",
69 ] 85 ]
86
87 if (is_desktop_linux && use_glib) {
88 deps += [ "//third_party/libsecret" ]
89 defines = [ "USE_LIBSECRET" ]
90 }
70 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698