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 #include "content/test/mock_chrome_application_mac.h" | |
6 | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 | |
9 @implementation MockCrControlApp | |
10 | |
11 - (BOOL)isHandlingSendEvent { | |
12 return isHandlingSendEvent_; | |
13 } | |
14 | |
15 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent { | |
16 isHandlingSendEvent_ = handlingSendEvent; | |
17 } | |
18 | |
19 @end | |
20 | |
21 namespace mock_cr_app { | |
22 | |
23 void RegisterMockCrControlApp() { | |
24 NSApplication* app = [MockCrControlApp sharedApplication]; | |
25 ASSERT_TRUE([app conformsToProtocol:@protocol(CrAppControlProtocol)]); | |
26 } | |
27 | |
28 } // namespace mock_cr_app | |
OLD | NEW |