blob: e25bb692c2ac2b7bfc947aaeb9f10f0f33439af2 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_TEST_CASE_APP_INTERFACE_H_
#define IOS_CHROME_TEST_EARL_GREY_CHROME_TEST_CASE_APP_INTERFACE_H_
#import <Foundation/Foundation.h>
@interface ChromeTestCaseAppInterface : NSObject
// Sets up mock authentication and the mock account reconcilor.
+ (void)setUpMockAuthentication;
// Tears down mock authentication and the mock account reconcilor.
+ (void)tearDownMockAuthentication;
// Resets mock authentication and signin promo settings.
+ (void)resetAuthentication;
// Removes all infobars and clears any presented state.
// See +[ChromeTestCaseAppInterface isCompletionInvokedWithUUID:] to know when
// all views are dismissed.
+ (void)removeInfoBarsAndPresentedStateWithCompletionUUID:
(NSUUID*)completionUUID;
// Returns YES if the completion related to |completionUUID| has been invoked.
// Once this method returns YES, |completionUUID| is dropped, and a second call
// will return NO.
+ (BOOL)isCompletionInvokedWithUUID:(NSUUID*)completionUUID;
@end
#endif // IOS_CHROME_TEST_EARL_GREY_CHROME_TEST_CASE_APP_INTERFACE_H_