Fix cryptohome unittest compile
Change-Id: I9343dec603936cc3bcea0284e3c277446c68da5e
BUG=none
TEST=Build with FEATURES=test emerge-x86-generic chromeos-base/chromeos-cryptohome (tests build and pass now)
Review URL: http://codereview.chromium.org/6878068
diff --git a/service_unittest.cc b/service_unittest.cc
index e8e6e25..46dc5c9 100755
--- a/service_unittest.cc
+++ b/service_unittest.cc
@@ -59,7 +59,8 @@
class ServiceSubclass : public Service {
public:
ServiceSubclass()
- : completed_tasks_() { }
+ : Service(false),
+ completed_tasks_() { }
virtual ~ServiceSubclass() { }
virtual void MountTaskObserve(const MountTaskResult& result) {
@@ -76,7 +77,7 @@
EXPECT_CALL(mount, TestCredentials(_))
.WillOnce(Return(true));
- Service service;
+ Service service(false);
service.set_mount(&mount);
NiceMock<MockInstallAttributes> attrs;
service.set_install_attrs(&attrs);
@@ -141,7 +142,7 @@
TEST(Standalone, CheckAutoCleanupCallback) {
// Checks that AutoCleanupCallback() is called periodically.
NiceMock<MockMount> mount;
- Service service;
+ Service service(false);
service.set_mount(&mount);
NiceMock<MockInstallAttributes> attrs;
service.set_install_attrs(&attrs);