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

Unified Diff: components/os_crypt/BUILD.gn

Issue 2010463002: Mocker for OSCrypt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated doc Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/os_crypt.gypi ('k') | components/os_crypt/os_crypt_mocker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/BUILD.gn
diff --git a/components/os_crypt/BUILD.gn b/components/os_crypt/BUILD.gn
index e283deae0881d16e8277ebeadf54de93eb238223..93fb9983605ec9d4a5700316fc8377ef6fe2755e 100644
--- a/components/os_crypt/BUILD.gn
+++ b/components/os_crypt/BUILD.gn
@@ -54,6 +54,22 @@ source_set("os_crypt") {
}
}
+source_set("test_support") {
+ testonly = true
+ sources = [
+ "os_crypt_mocker.cc",
+ "os_crypt_mocker.h",
+ ]
+ deps = [
+ ":os_crypt",
+ "//base",
+ ]
+ if (is_desktop_linux && use_glib) {
+ deps += [ "//third_party/libsecret" ]
+ defines = [ "USE_LIBSECRET" ]
+ }
+}
+
source_set("unit_tests") {
testonly = true
sources = [
@@ -63,8 +79,14 @@ source_set("unit_tests") {
]
deps = [
":os_crypt",
+ ":test_support",
"//base",
"//crypto",
"//testing/gtest",
]
+
+ if (is_desktop_linux && use_glib) {
+ deps += [ "//third_party/libsecret" ]
+ defines = [ "USE_LIBSECRET" ]
+ }
}
« no previous file with comments | « components/os_crypt.gypi ('k') | components/os_crypt/os_crypt_mocker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698