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

Side by Side Diff: content/test/mock_chrome_application_mac.h

Issue 8724004: [Mac] Move ScopedSendingEvent from content/common/mac to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CrAppControlProtocol support to CrDrtApplication Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698