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

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: 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
Index: components/os_crypt/BUILD.gn
diff --git a/components/os_crypt/BUILD.gn b/components/os_crypt/BUILD.gn
index e283deae0881d16e8277ebeadf54de93eb238223..1fc75b035fa31fda5775ba4405162121f701dc19 100644
--- a/components/os_crypt/BUILD.gn
+++ b/components/os_crypt/BUILD.gn
@@ -54,6 +54,21 @@ source_set("os_crypt") {
}
}
+source_set("test_support") {
+ sources = [
vabr (Chromium) 2016/05/24 13:33:44 Please also use: testonly = true
cfroussios 2016/05/25 13:13:09 Done.
+ "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 +78,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" ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698