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

Unified Diff: service_unittest.cc

Issue 6878068: Fix cryptohome unittest compile (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: one more 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 | « no previous file | 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 e8e6e25f230b758154893019e66cd66bf85f7d60..46dc5c9ec4bda992417cb068f6053b39b2fd2f5f 100755
--- a/service_unittest.cc
+++ b/service_unittest.cc
@@ -59,7 +59,8 @@ class ServiceInterfaceTest : public ::testing::Test {
class ServiceSubclass : public Service {
public:
ServiceSubclass()
- : completed_tasks_() { }
+ : Service(false),
+ completed_tasks_() { }
virtual ~ServiceSubclass() { }
virtual void MountTaskObserve(const MountTaskResult& result) {
@@ -76,7 +77,7 @@ TEST_F(ServiceInterfaceTest, CheckKeySuccessTest) {
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_F(ServiceInterfaceTest, CheckAsyncTestCredentials) {
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698