Chromium Code Reviews| 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" ] |
| + } |
| } |