blob: a5d4c0cf97e6d7e7862496e5b04fe064edc48d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/test/mock_chrome_application_mac.h"
#include "testing/gtest/include/gtest/gtest.h"
@implementation MockCrControlApp
- (BOOL)isHandlingSendEvent {
return isHandlingSendEvent_;
}
- (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
isHandlingSendEvent_ = handlingSendEvent;
}
@end
namespace mock_cr_app {
void RegisterMockCrControlApp() {
NSApplication* app = [MockCrControlApp sharedApplication];
ASSERT_TRUE([app conformsToProtocol:@protocol(CrAppControlProtocol)]);
}
} // namespace mock_cr_app
|