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

Side by Side Diff: ios/chrome/test/earl_grey/chrome_earl_grey.h

Issue 2734963004: Refactor Assert[No]CookieExists to return a boolean (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 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_
6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_
7 7
8 #import <EarlGrey/EarlGrey.h> 8 #import <EarlGrey/EarlGrey.h>
9 9
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 16 matching lines...) Expand all
27 // Test methods that perform actions on Chrome. These methods may read or alter 27 // Test methods that perform actions on Chrome. These methods may read or alter
28 // Chrome's internal state programmatically or via the UI, but in both cases 28 // Chrome's internal state programmatically or via the UI, but in both cases
29 // will properly synchronize the UI for Earl Grey tests. 29 // will properly synchronize the UI for Earl Grey tests.
30 @interface ChromeEarlGrey : NSObject 30 @interface ChromeEarlGrey : NSObject
31 31
32 #pragma mark - History Utilities 32 #pragma mark - History Utilities
33 33
34 // Clears browsing history. 34 // Clears browsing history.
35 + (void)clearBrowsingHistory; 35 + (void)clearBrowsingHistory;
36 36
37 #pragma mark - Cookie Utilities
38
39 // Returns cookies as key value pairs, where key is a cookie name and value is a
40 // cookie value.
41 // NOTE: this method fails the test if there are errors getting cookies.
42 + (NSDictionary*)cookies;
43
37 #pragma mark - Navigation Utilities 44 #pragma mark - Navigation Utilities
38 45
39 // Loads |URL| in the current WebState with transition of type 46 // Loads |URL| in the current WebState with transition of type
40 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or 47 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or
41 // a timeout. 48 // a timeout.
42 + (void)loadURL:(GURL)URL; 49 + (void)loadURL:(GURL)URL;
43 50
44 // Waits for the page to finish loading or a timeout. 51 // Waits for the page to finish loading or a timeout.
45 + (void)waitForPageToFinishLoading; 52 + (void)waitForPageToFinishLoading;
46 53
47 // Taps html element with |elementID| in the current web view. 54 // Taps html element with |elementID| in the current web view.
48 + (void)tapWebViewElementWithID:(NSString*)elementID; 55 + (void)tapWebViewElementWithID:(NSString*)elementID;
49 56
50 @end 57 @end
51 58
52 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ 59 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/settings_egtest.mm ('k') | ios/chrome/test/earl_grey/chrome_earl_grey.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698