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.
#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:
// 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;