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

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: Update comments 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, and it fails the test if there are errors
Eugene But (OOO till 7-30) 2017/03/14 00:43:38 How about "Returns cookies as key value pairs, whe
liaoyuke 2017/03/14 17:04:39 Done.
40 // getting cookies.
41 + (NSDictionary*)cookies;
42
37 #pragma mark - Navigation Utilities 43 #pragma mark - Navigation Utilities
38 44
39 // Loads |URL| in the current WebState with transition of type 45 // Loads |URL| in the current WebState with transition of type
40 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or 46 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or
41 // a timeout. 47 // a timeout.
42 + (void)loadURL:(GURL)URL; 48 + (void)loadURL:(GURL)URL;
43 49
44 // Waits for the page to finish loading or a timeout. 50 // Waits for the page to finish loading or a timeout.
45 + (void)waitForPageToFinishLoading; 51 + (void)waitForPageToFinishLoading;
46 52
47 // Taps html element with |elementID| in the current web view. 53 // Taps html element with |elementID| in the current web view.
48 + (void)tapWebViewElementWithID:(NSString*)elementID; 54 + (void)tapWebViewElementWithID:(NSString*)elementID;
49 55
50 @end 56 @end
51 57
52 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_ 58 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698