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

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

Issue 8724004: [Mac] Move ScopedSendingEvent from content/common/mac to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #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
OLDNEW
« content/test/content_test_suite.cc ('K') | « content/test/mock_chrome_application_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698