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

Side by Side Diff: ios/shared/chrome/browser/ui/commands/command_dispatcher_unittest.mm

Issue 2745223005: [ios] Adds a CommandDispatcher to Browser. (Closed)
Patch Set: Move code into ios/shared. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/clean/chrome/browser/ui/commands/command_dispatcher.h" 5 #import "ios/shared/chrome/browser/ui/commands/command_dispatcher.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc) 12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support." 13 #error "This file requires ARC support."
14 #endif 14 #endif
15 15
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 bool exception_caught = false; 227 bool exception_caught = false;
228 @try { 228 @try {
229 [dispatcher hide]; 229 [dispatcher hide];
230 } @catch (NSException* exception) { 230 } @catch (NSException* exception) {
231 EXPECT_EQ(NSInvalidArgumentException, [exception name]); 231 EXPECT_EQ(NSInvalidArgumentException, [exception name]);
232 exception_caught = true; 232 exception_caught = true;
233 } 233 }
234 234
235 EXPECT_TRUE(exception_caught); 235 EXPECT_TRUE(exception_caught);
236 } 236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698