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

Side by Side Diff: ios/chrome/browser/ui/settings/accounts_collection_egtest.mm

Issue 2761443005: Add disabled_test_macro import to EarlGrey base test cases. (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 #import <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 #import <XCTest/XCTest.h> 6 #import <XCTest/XCTest.h>
7 7
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "components/signin/core/browser/signin_manager.h" 9 #include "components/signin/core/browser/signin_manager.h"
10 #include "components/strings/grit/components_strings.h" 10 #include "components/strings/grit/components_strings.h"
11 #include "ios/chrome/browser/signin/signin_manager_factory.h" 11 #include "ios/chrome/browser/signin/signin_manager_factory.h"
12 #import "ios/chrome/browser/ui/settings/accounts_collection_view_controller.h" 12 #import "ios/chrome/browser/ui/settings/accounts_collection_view_controller.h"
13 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h" 13 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h"
14 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" 14 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h"
15 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" 15 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h"
16 #include "ios/chrome/grit/ios_strings.h" 16 #include "ios/chrome/grit/ios_strings.h"
17 #import "ios/chrome/test/app/chrome_test_util.h" 17 #import "ios/chrome/test/app/chrome_test_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 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" 21 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h"
22 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service. h" 22 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service. h"
23 #import "ios/testing/earl_grey/disabled_test_macros.h"
24 23
25 namespace { 24 namespace {
26 25
27 // Returns a fake identity. 26 // Returns a fake identity.
28 ChromeIdentity* GetFakeIdentity1() { 27 ChromeIdentity* GetFakeIdentity1() {
29 return [FakeChromeIdentity identityWithEmail:@"foo@gmail.com" 28 return [FakeChromeIdentity identityWithEmail:@"foo@gmail.com"
30 gaiaID:@"fooID" 29 gaiaID:@"fooID"
31 name:@"Fake Foo"]; 30 name:@"Fake Foo"];
32 } 31 }
33 32
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // Check that Account Settings screen is open and |identity| is signed in. 304 // Check that Account Settings screen is open and |identity| is signed in.
306 [[EarlGrey selectElementWithMatcher:grey_accessibilityID(kSettingsAccountsId)] 305 [[EarlGrey selectElementWithMatcher:grey_accessibilityID(kSettingsAccountsId)]
307 assertWithMatcher:grey_sufficientlyVisible()]; 306 assertWithMatcher:grey_sufficientlyVisible()];
308 AssertAuthenticatedIdentityInActiveProfile(identity); 307 AssertAuthenticatedIdentityInActiveProfile(identity);
309 308
310 // Close Settings. 309 // Close Settings.
311 TapButtonWithLabelId(IDS_IOS_NAVIGATION_BAR_DONE_BUTTON); 310 TapButtonWithLabelId(IDS_IOS_NAVIGATION_BAR_DONE_BUTTON);
312 } 311 }
313 312
314 @end 313 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/reading_list/reading_list_egtest.mm ('k') | ios/chrome/browser/ui/stack_view/stack_view_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698