| Index: service_unittest.cc
|
| diff --git a/service_unittest.cc b/service_unittest.cc
|
| index abe57367c6394da40fe7ec94a4b7300acf65c1a6..ac8e4fb8f366bc7b824fb3458488c08802d06026 100755
|
| --- a/service_unittest.cc
|
| +++ b/service_unittest.cc
|
| @@ -14,6 +14,7 @@
|
| #include "crypto.h"
|
| #include "make_tests.h"
|
| #include "mock_mount.h"
|
| +#include "mock_lockbox.h"
|
| #include "mock_tpm.h"
|
| #include "secure_blob.h"
|
| #include "username_passkey.h"
|
| @@ -77,6 +78,8 @@ TEST_F(ServiceInterfaceTest, CheckKeySuccessTest) {
|
|
|
| Service service;
|
| service.set_mount(&mount);
|
| + NiceMock<MockLockbox> lockbox;
|
| + service.set_lockbox(&lockbox);
|
| 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<MockLockbox> lockbox;
|
| + service.set_lockbox(&lockbox);
|
| service.set_initialize_tpm(false);
|
| service.Initialize();
|
|
|
| @@ -138,6 +143,8 @@ TEST(Standalone, CheckAutoCleanupCallback) {
|
| NiceMock<MockMount> mount;
|
| Service service;
|
| service.set_mount(&mount);
|
| + NiceMock<MockLockbox> lockbox;
|
| + service.set_lockbox(&lockbox);
|
| service.set_initialize_tpm(false);
|
|
|
| // Service will schedule periodic clean-ups. Wait a bit and make
|
|
|