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

Side by Side Diff: ios/chrome/browser/net/cookies_egtest.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 6 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
« no previous file with comments | « ios/chrome/browser/net/BUILD.gn ('k') | ios/chrome/browser/omaha/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 #import "ios/web/public/test/http_server/http_server.h"
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/net/BUILD.gn ('k') | ios/chrome/browser/omaha/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698