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

Unified Diff: service_unittest.cc

Issue 6801020: service,cryptohome: wire up lockbox to dbus (Closed)
Patch Set: last upload before push Created 9 years, 8 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 | « service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service_unittest.cc
diff --git a/service_unittest.cc b/service_unittest.cc
index 2decb1847de7b00715ae2d99e1068c8adb149204..e8e6e25f230b758154893019e66cd66bf85f7d60 100755
--- a/service_unittest.cc
+++ b/service_unittest.cc
@@ -13,6 +13,7 @@
#include "crypto.h"
#include "make_tests.h"
+#include "mock_install_attributes.h"
#include "mock_mount.h"
#include "mock_tpm.h"
#include "secure_blob.h"
@@ -77,6 +78,8 @@ TEST_F(ServiceInterfaceTest, CheckKeySuccessTest) {
Service service;
service.set_mount(&mount);
+ NiceMock<MockInstallAttributes> attrs;
+ service.set_install_attrs(&attrs);
service.set_initialize_tpm(false);
service.Initialize();
gboolean out = FALSE;
@@ -99,6 +102,8 @@ TEST_F(ServiceInterfaceTest, CheckAsyncTestCredentials) {
ServiceSubclass service;
service.set_mount(&mount);
+ NiceMock<MockInstallAttributes> attrs;
+ service.set_install_attrs(&attrs);
service.set_initialize_tpm(false);
service.Initialize();
@@ -138,6 +143,8 @@ TEST(Standalone, CheckAutoCleanupCallback) {
NiceMock<MockMount> mount;
Service service;
service.set_mount(&mount);
+ NiceMock<MockInstallAttributes> attrs;
+ service.set_install_attrs(&attrs);
service.set_initialize_tpm(false);
// Service will schedule periodic clean-ups. Wait a bit and make
« no previous file with comments | « service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698