blob: 48db4195cab976a24270326892ee0970ecefa6ed (
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
|
// 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 "base/test/mock_chrome_application_mac.h"
#include "base/logging.h"
@implementation MockCrApp
- (BOOL)isHandlingSendEvent {
return NO;
}
@end
namespace mock_cr_app {
void RegisterMockCrApp() {
NSApplication* app = [MockCrApp sharedApplication];
// Would prefer ASSERT_TRUE() to provide better test failures, but
// this class is used by remoting/ for a non-test use.
DCHECK([app conformsToProtocol:@protocol(CrAppProtocol)]);
}
} // namespace mock_cr_app
|