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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #import <EarlGrey/EarlGrey.h> | 7 #import <EarlGrey/EarlGrey.h> |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 #import <XCTest/XCTest.h> | 9 #import <XCTest/XCTest.h> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "ios/chrome/test/app/navigation_test_util.h" | 29 #include "ios/chrome/test/app/navigation_test_util.h" |
30 #import "ios/chrome/test/app/tab_test_util.h" | 30 #import "ios/chrome/test/app/tab_test_util.h" |
31 #import "ios/chrome/test/earl_grey/accessibility_util.h" | 31 #import "ios/chrome/test/earl_grey/accessibility_util.h" |
32 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 32 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
33 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 33 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
34 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 34 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
35 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 35 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
36 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" | 36 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" |
37 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.
h" | 37 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.
h" |
38 #import "ios/testing/wait_util.h" | 38 #import "ios/testing/wait_util.h" |
39 #import "ios/web/public/test/http_server.h" | 39 #import "ios/web/public/test/http_server/http_server.h" |
40 #include "ios/web/public/test/http_server_util.h" | 40 #include "ios/web/public/test/http_server/http_server_util.h" |
41 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
42 #include "ui/base/models/tree_node_iterator.h" | 42 #include "ui/base/models/tree_node_iterator.h" |
43 #include "url/gurl.h" | 43 #include "url/gurl.h" |
44 | 44 |
45 #if !defined(__has_feature) || !__has_feature(objc_arc) | 45 #if !defined(__has_feature) || !__has_feature(objc_arc) |
46 #error "This file requires ARC support." | 46 #error "This file requires ARC support." |
47 #endif | 47 #endif |
48 | 48 |
49 using chrome_test_util::ButtonWithAccessibilityLabel; | 49 using chrome_test_util::ButtonWithAccessibilityLabel; |
50 using chrome_test_util::ButtonWithAccessibilityLabelId; | 50 using chrome_test_util::ButtonWithAccessibilityLabelId; |
(...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 if (!IsCompact()) { | 1689 if (!IsCompact()) { |
1690 [[EarlGrey selectElementWithMatcher:StarButton()] performAction:grey_tap()]; | 1690 [[EarlGrey selectElementWithMatcher:StarButton()] performAction:grey_tap()]; |
1691 } else { | 1691 } else { |
1692 [ChromeEarlGreyUI openToolsMenu]; | 1692 [ChromeEarlGreyUI openToolsMenu]; |
1693 [[EarlGrey selectElementWithMatcher:AddBookmarkButton()] | 1693 [[EarlGrey selectElementWithMatcher:AddBookmarkButton()] |
1694 performAction:grey_tap()]; | 1694 performAction:grey_tap()]; |
1695 } | 1695 } |
1696 } | 1696 } |
1697 | 1697 |
1698 @end | 1698 @end |
OLD | NEW |