Chromium Code Reviews| Index: chrome/common/mac/mock_launchd.h |
| diff --git a/chrome/common/mac/mock_launchd.h b/chrome/common/mac/mock_launchd.h |
| index 5d043c6a37dbbc6f6d923dd51739a20dc61962c7..e62aaff78c887600f23e9156f7a07280de4efeaf 100644 |
| --- a/chrome/common/mac/mock_launchd.h |
| +++ b/chrome/common/mac/mock_launchd.h |
| @@ -7,10 +7,13 @@ |
| #pragma once |
| #include <launch.h> |
| +#include <string> |
|
Mark Mentovai
2012/01/20 20:41:35
Blank line before.
|
| #include "base/file_path.h" |
| #include "base/mac/scoped_cftyperef.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "chrome/common/mac/launchd.h" |
| +#include "chrome/common/multi_process_lock.h" |
| class MessageLoop; |
| @@ -23,16 +26,9 @@ class MockLaunchd : public Launchd { |
| FilePath* bundle_root, |
| FilePath* executable); |
| - MockLaunchd(const FilePath& file, MessageLoop* loop) |
| - : file_(file), |
| - message_loop_(loop), |
| - restart_called_(false), |
| - remove_called_(false), |
| - checkin_called_(false), |
| - write_called_(false), |
| - delete_called_(false) { |
| - } |
| - virtual ~MockLaunchd() { } |
| + MockLaunchd(const FilePath& file, MessageLoop* loop, |
| + bool create_socket, bool as_service); |
| + virtual ~MockLaunchd(); |
| virtual CFDictionaryRef CopyExports() OVERRIDE; |
| virtual CFDictionaryRef CopyJobDictionary(CFStringRef label) OVERRIDE; |
| @@ -55,6 +51,8 @@ class MockLaunchd : public Launchd { |
| Type type, |
| CFStringRef name) OVERRIDE; |
| + void SignalReady(); |
| + |
| bool restart_called() const { return restart_called_; } |
| bool remove_called() const { return remove_called_; } |
| bool checkin_called() const { return checkin_called_; } |
| @@ -63,9 +61,14 @@ class MockLaunchd : public Launchd { |
| private: |
| FilePath file_; |
| + std::string pipe_name_; |
| MessageLoop* message_loop_; |
| + scoped_ptr<MultiProcessLock> running_lock_; |
| + bool create_socket_; |
| + bool as_service_; |
| bool restart_called_; |
| bool remove_called_; |
| + bool job_called_; |
| bool checkin_called_; |
| bool write_called_; |
| bool delete_called_; |