OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
6 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
8 | 8 |
9 #import "ios/chrome/app/main_controller_private.h" | 9 #import "ios/chrome/app/main_controller_private.h" |
10 #include "ios/chrome/browser/chrome_switches.h" | 10 #include "ios/chrome/browser/chrome_switches.h" |
11 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" | 11 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" |
12 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" | 12 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" |
13 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" | 13 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" |
14 #import "ios/chrome/browser/ui/ui_util.h" | 14 #import "ios/chrome/browser/ui/ui_util.h" |
15 #include "ios/chrome/grit/ios_strings.h" | 15 #include "ios/chrome/grit/ios_strings.h" |
16 #import "ios/chrome/test/app/chrome_test_util.h" | 16 #import "ios/chrome/test/app/chrome_test_util.h" |
17 #include "ios/chrome/test/earl_grey/accessibility_util.h" | 17 #include "ios/chrome/test/earl_grey/accessibility_util.h" |
18 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 18 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
19 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 19 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
20 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 20 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 | 22 |
23 #if !defined(__has_feature) || !__has_feature(objc_arc) | 23 #if !defined(__has_feature) || !__has_feature(objc_arc) |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 289 |
290 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 290 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
291 | 291 |
292 // Create new incognito tab to exit the tab switcher. | 292 // Create new incognito tab to exit the tab switcher. |
293 [[EarlGrey selectElementWithMatcher:TabSwitcherNewIncognitoTabButton()] | 293 [[EarlGrey selectElementWithMatcher:TabSwitcherNewIncognitoTabButton()] |
294 performAction:grey_tap()]; | 294 performAction:grey_tap()]; |
295 | 295 |
296 [self assertTabSwitcherIsInactive]; | 296 [self assertTabSwitcherIsInactive]; |
297 } | 297 } |
298 @end | 298 @end |
OLD | NEW |