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

Side by Side Diff: ios/chrome/browser/web/cache_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
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 #import <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "components/content_settings/core/browser/host_content_settings_map.h" 9 #include "components/content_settings/core/browser/host_content_settings_map.h"
10 #include "components/content_settings/core/common/content_settings.h" 10 #include "components/content_settings/core/common/content_settings.h"
11 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory. h" 11 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory. h"
12 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" 12 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
13 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" 13 #include "ios/chrome/browser/ui/commands/ios_command_ids.h"
14 #import "ios/chrome/test/app/chrome_test_util.h" 14 #import "ios/chrome/test/app/chrome_test_util.h"
15 #include "ios/chrome/test/app/history_test_util.h" 15 #include "ios/chrome/test/app/history_test_util.h"
16 #include "ios/chrome/test/app/navigation_test_util.h" 16 #include "ios/chrome/test/app/navigation_test_util.h"
17 #include "ios/chrome/test/app/web_view_interaction_test_util.h" 17 #include "ios/chrome/test/app/web_view_interaction_test_util.h"
18 #import "ios/chrome/test/earl_grey/chrome_assertions.h" 18 #import "ios/chrome/test/earl_grey/chrome_assertions.h"
19 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 19 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
20 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 20 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
21 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 21 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
22 #import "ios/testing/wait_util.h" 22 #import "ios/testing/wait_util.h"
23 #import "ios/web/public/test/http_server.h" 23 #include "ios/web/public/test/http_server/html_response_provider.h"
24 #include "ios/web/public/test/http_server_util.h" 24 #import "ios/web/public/test/http_server/http_server.h"
25 #include "ios/web/public/test/response_providers/html_response_provider.h" 25 #include "ios/web/public/test/http_server/http_server_util.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
28 #if !defined(__has_feature) || !__has_feature(objc_arc) 28 #if !defined(__has_feature) || !__has_feature(objc_arc)
29 #error "This file requires ARC support." 29 #error "This file requires ARC support."
30 #endif 30 #endif
31 31
32 using chrome_test_util::WebViewContainingText; 32 using chrome_test_util::WebViewContainingText;
33 using web::test::HttpServer; 33 using web::test::HttpServer;
34 34
35 namespace { 35 namespace {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 // Verify title and hitCount. Cache should not be used. 284 // Verify title and hitCount. Cache should not be used.
285 [[EarlGrey selectElementWithMatcher:WebViewContainingText("First Page")] 285 [[EarlGrey selectElementWithMatcher:WebViewContainingText("First Page")]
286 assertWithMatcher:grey_notNil()]; 286 assertWithMatcher:grey_notNil()];
287 [[EarlGrey 287 [[EarlGrey
288 selectElementWithMatcher:WebViewContainingText("serverHitCounter: 2")] 288 selectElementWithMatcher:WebViewContainingText("serverHitCounter: 2")]
289 assertWithMatcher:grey_notNil()]; 289 assertWithMatcher:grey_notNil()];
290 } 290 }
291 291
292 @end 292 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/web/browsing_prevent_default_egtest.mm ('k') | ios/chrome/browser/web/child_window_open_by_dom_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698