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

Unified Diff: chrome/common/mac/mock_launchd.h

Issue 9131016: Cloud Print Policy - service side enforcement, Mac browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 8 years, 11 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
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..b1a76bbf74fb5edb1a8faaac141c40957bfe7595 100644
--- a/chrome/common/mac/mock_launchd.h
+++ b/chrome/common/mac/mock_launchd.h
@@ -8,9 +8,13 @@
#include <launch.h>
+#include <string>
+
#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 +27,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 +52,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 +62,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_;

Powered by Google App Engine
This is Rietveld 408576698