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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm

Issue 2722693002: [ios] Creates ToolsMenuConstants file (Closed)
Patch Set: Rebase 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 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
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "components/bookmarks/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/bookmarks/browser/titled_url_match.h" 13 #include "components/bookmarks/browser/titled_url_match.h"
14 #include "components/prefs/pref_service.h" 14 #include "components/prefs/pref_service.h"
15 #include "components/strings/grit/components_strings.h" 15 #include "components/strings/grit/components_strings.h"
16 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" 16 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
17 #include "ios/chrome/browser/bookmarks/bookmarks_utils.h" 17 #include "ios/chrome/browser/bookmarks/bookmarks_utils.h"
18 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 18 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
19 #include "ios/chrome/browser/experimental_flags.h" 19 #include "ios/chrome/browser/experimental_flags.h"
20 #include "ios/chrome/browser/pref_names.h" 20 #include "ios/chrome/browser/pref_names.h"
21 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" 21 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
22 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" 22 #include "ios/chrome/browser/ui/commands/ios_command_ids.h"
23 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" 23 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h"
24 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" 24 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h"
25 #import "ios/chrome/browser/ui/uikit_ui_util.h" 25 #import "ios/chrome/browser/ui/uikit_ui_util.h"
26 #include "ios/chrome/grit/ios_strings.h" 26 #include "ios/chrome/grit/ios_strings.h"
27 #import "ios/chrome/test/app/bookmarks_test_util.h" 27 #import "ios/chrome/test/app/bookmarks_test_util.h"
28 #import "ios/chrome/test/app/chrome_test_util.h" 28 #import "ios/chrome/test/app/chrome_test_util.h"
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"
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698