| 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
|
|
|