OLD | NEW |
---|---|
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 #include <map> | 5 #include <map> |
6 #include <memory> | 6 #include <memory> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #import <EarlGrey/EarlGrey.h> | 9 #import <EarlGrey/EarlGrey.h> |
10 #import <XCTest/XCTest.h> | 10 #import <XCTest/XCTest.h> |
11 | 11 |
12 #include "base/mac/foundation_util.h" | 12 #include "base/mac/foundation_util.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #import "ios/chrome/test/app/chrome_test_util.h" | 14 #import "ios/chrome/test/app/chrome_test_util.h" |
15 #import "ios/chrome/test/app/tab_test_util.h" | 15 #import "ios/chrome/test/app/tab_test_util.h" |
16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
17 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 17 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
18 #include "ios/web/public/test/http_server.h" | 18 #include "ios/web/public/test/http_server/html_response_provider.h" |
19 #include "ios/web/public/test/http_server_util.h" | 19 #include "ios/web/public/test/http_server/http_server.h" |
Eugene But (OOO till 7-30)
2017/05/26 17:22:28
nit: s/include/import
baxley
2017/05/26 18:06:20
Done.
| |
20 #include "ios/web/public/test/response_providers/html_response_provider.h" | 20 #include "ios/web/public/test/http_server/http_server_util.h" |
21 #include "ios/web/public/test/response_providers/response_provider.h" | 21 #include "ios/web/public/test/http_server/response_provider.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 #if !defined(__has_feature) || !__has_feature(objc_arc) | 24 #if !defined(__has_feature) || !__has_feature(objc_arc) |
25 #error "This file requires ARC support." | 25 #error "This file requires ARC support." |
26 #endif | 26 #endif |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const char kTestUrlNormalBrowsing[] = "http://choux/normal/browsing"; | 30 const char kTestUrlNormalBrowsing[] = "http://choux/normal/browsing"; |
31 const char kTestUrlNormalSetCookie[] = "http://choux/normal/set_cookie"; | 31 const char kTestUrlNormalSetCookie[] = "http://choux/normal/set_cookie"; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 loadURL:web::test::HttpServer::MakeUrl(kTestUrlNormalBrowsing)]; | 273 loadURL:web::test::HttpServer::MakeUrl(kTestUrlNormalBrowsing)]; |
274 cookies = [ChromeEarlGrey cookies]; | 274 cookies = [ChromeEarlGrey cookies]; |
275 GREYAssertEqualObjects( | 275 GREYAssertEqualObjects( |
276 kNormalCookieValue, cookies[kNormalCookieName], | 276 kNormalCookieValue, cookies[kNormalCookieName], |
277 @"Normal cookie should still be found in normal mode."); | 277 @"Normal cookie should still be found in normal mode."); |
278 GREYAssertEqual(1U, cookies.count, | 278 GREYAssertEqual(1U, cookies.count, |
279 @"Only one cookie should be found in normal mode."); | 279 @"Only one cookie should be found in normal mode."); |
280 } | 280 } |
281 | 281 |
282 @end | 282 @end |
OLD | NEW |