| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_TEST_MOCK_CHROME_APPLICATION_MAC_H_ | |
| 6 #define CONTENT_TEST_MOCK_CHROME_APPLICATION_MAC_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #if defined(__OBJC__) | |
| 10 | |
| 11 #import <AppKit/AppKit.h> | |
| 12 | |
| 13 #include "content/common/mac/scoped_sending_event.h" | |
| 14 | |
| 15 // Mock implementation supporting CrAppControlProtocol. Can be used | |
| 16 // in tests using ScopedSendingEvent to deal with nested message | |
| 17 // loops. Also implements CrAppProtocol so can be used as a | |
| 18 // replacement for MockCrApp (in base/). | |
| 19 @interface MockCrControlApp : NSApplication<CrAppControlProtocol> { | |
| 20 @private | |
| 21 BOOL isHandlingSendEvent_; | |
| 22 } | |
| 23 @end | |
| 24 | |
| 25 #endif // __OBJC__ | |
| 26 | |
| 27 // To be used to instantiate MockCrControlApp from C++ code. | |
| 28 namespace mock_cr_app { | |
| 29 void RegisterMockCrControlApp(); | |
| 30 } // namespace mock_cr_app | |
| 31 | |
| 32 #endif // CONTENT_TEST_MOCK_CHROME_APPLICATION_MAC_H_ | |
| OLD | NEW |