| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |