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

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

Issue 5950003: Remove CrApplication dependency from base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: '' Created 10 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
« no previous file with comments | « base/message_pump_mac.mm ('k') | base/test/mock_chrome_application_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 BASE_TEST_MOCK_CHROME_APPLICATION_MAC_H_
6 #define BASE_TEST_MOCK_CHROME_APPLICATION_MAC_H_
7 #pragma once
8
9 #if defined(__OBJC__)
10
11 #import <AppKit/AppKit.h>
12
13 #include "base/message_pump_mac.h"
14
15 // A mock implementation of CrAppProtocol that claims that -sendEvent: is never
16 // on the stack. This can be used in tests that need an NSApplication and use a
17 // runloop, but don't run nested message loops.
18 @interface MockCrApp : NSApplication<CrAppProtocol>
19 @end
20
21 #endif
22
23 // To be used to instantiate MockCrApp from C++ code.
24 namespace mock_cr_app {
25 void RegisterMockCrApp();
26 } // namespace mock_cr_app
27
28 #endif // BASE_TEST_MOCK_CHROME_APPLICATION_MAC_H_
OLDNEW
« no previous file with comments | « base/message_pump_mac.mm ('k') | base/test/mock_chrome_application_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698