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

Unified Diff: base/test/mock_chrome_application_mac.mm

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/mock_chrome_application_mac.h ('k') | base/test/mock_devices_changed_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/mock_chrome_application_mac.mm
diff --git a/base/test/mock_chrome_application_mac.mm b/base/test/mock_chrome_application_mac.mm
deleted file mode 100644
index 089055361d2bb07286688d747e9128fb835fd32e..0000000000000000000000000000000000000000
--- a/base/test/mock_chrome_application_mac.mm
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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/auto_reset.h"
-#include "base/logging.h"
-
-@implementation MockCrApp
-
-+ (NSApplication*)sharedApplication {
- NSApplication* app = [super sharedApplication];
- DCHECK([app conformsToProtocol:@protocol(CrAppControlProtocol)])
- << "Existing NSApp (class " << [[app className] UTF8String]
- << ") does not conform to required protocol.";
- DCHECK(base::MessagePumpMac::UsingCrApp())
- << "MessagePumpMac::Create() was called before "
- << "+[MockCrApp sharedApplication]";
- return app;
-}
-
-- (void)sendEvent:(NSEvent*)event {
- base::AutoReset<BOOL> scoper(&handlingSendEvent_, YES);
- [super sendEvent:event];
-}
-
-- (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
- handlingSendEvent_ = handlingSendEvent;
-}
-
-- (BOOL)isHandlingSendEvent {
- return handlingSendEvent_;
-}
-
-@end
-
-namespace mock_cr_app {
-
-void RegisterMockCrApp() {
- [MockCrApp sharedApplication];
-}
-
-} // namespace mock_cr_app
« no previous file with comments | « base/test/mock_chrome_application_mac.h ('k') | base/test/mock_devices_changed_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698