OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ | 5 #ifndef CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ |
6 #define CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ | 6 #define CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ |
7 | 7 |
8 #include <launch.h> | 8 #include <launch.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 static bool MakeABundle(const base::FilePath& dst, | 26 static bool MakeABundle(const base::FilePath& dst, |
27 const std::string& name, | 27 const std::string& name, |
28 base::FilePath* bundle_root, | 28 base::FilePath* bundle_root, |
29 base::FilePath* executable); | 29 base::FilePath* executable); |
30 | 30 |
31 MockLaunchd(const base::FilePath& file, base::MessageLoop* loop, | 31 MockLaunchd(const base::FilePath& file, base::MessageLoop* loop, |
32 bool create_socket, bool as_service); | 32 bool create_socket, bool as_service); |
33 ~MockLaunchd() override; | 33 ~MockLaunchd() override; |
34 | 34 |
35 CFDictionaryRef CopyExports() override; | |
36 CFDictionaryRef CopyJobDictionary(CFStringRef label) override; | 35 CFDictionaryRef CopyJobDictionary(CFStringRef label) override; |
37 CFDictionaryRef CopyDictionaryByCheckingIn(CFErrorRef* error) override; | 36 CFDictionaryRef CopyDictionaryByCheckingIn(CFErrorRef* error) override; |
38 bool RemoveJob(CFStringRef label, CFErrorRef* error) override; | 37 bool RemoveJob(CFStringRef label, CFErrorRef* error) override; |
39 bool RestartJob(Domain domain, | 38 bool RestartJob(Domain domain, |
40 Type type, | 39 Type type, |
41 CFStringRef name, | 40 CFStringRef name, |
42 CFStringRef session_type) override; | 41 CFStringRef session_type) override; |
43 CFMutableDictionaryRef CreatePlistFromFile(Domain domain, | 42 CFMutableDictionaryRef CreatePlistFromFile(Domain domain, |
44 Type type, | 43 Type type, |
45 CFStringRef name) override; | 44 CFStringRef name) override; |
(...skipping 19 matching lines...) Expand all Loading... |
65 bool create_socket_; | 64 bool create_socket_; |
66 bool as_service_; | 65 bool as_service_; |
67 bool restart_called_; | 66 bool restart_called_; |
68 bool remove_called_; | 67 bool remove_called_; |
69 bool checkin_called_; | 68 bool checkin_called_; |
70 bool write_called_; | 69 bool write_called_; |
71 bool delete_called_; | 70 bool delete_called_; |
72 }; | 71 }; |
73 | 72 |
74 #endif // CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ | 73 #endif // CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ |
OLD | NEW |