Documentation ¶
Overview ¶
Package notification contains utilities to help writing ARC notification tests.
Index ¶
- type ARCClient
- func (t *ARCClient) Close(ctx context.Context, tconn *chrome.TestConn) error
- func (t *ARCClient) CreateOrUpdateTestNotification(ctx context.Context, tconn *chrome.TestConn, title, text, msgID string) error
- func (t *ARCClient) RemoveNotification(ctx context.Context, tconn *chrome.TestConn, msgID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARCClient ¶
type ARCClient struct {
// contains filtered or unexported fields
}
ARCClient holds the resource that needed across ARC notification tast test steps.
func NewARCClient ¶
func NewARCClient(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome, outDir string) (cl *ARCClient, retErr error)
NewARCClient creates an ARCClient by installing the notification testing app, launch the app and initialize the UI Automator that needed for generating notifications.
func (*ARCClient) CreateOrUpdateTestNotification ¶
func (t *ARCClient) CreateOrUpdateTestNotification(ctx context.Context, tconn *chrome.TestConn, title, text, msgID string) error
CreateOrUpdateTestNotification creates a notification with a custom title, text, then verified that it is created successfully. msgID uniquely identify the notification, so if notification needed to be updated, use the same msgID.
Click to show internal directories.
Click to hide internal directories.