| 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 #import <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
| 6 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
| 7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #import "ios/chrome/test/app/tab_test_util.h" | 24 #import "ios/chrome/test/app/tab_test_util.h" |
| 25 #import "ios/chrome/test/earl_grey/accessibility_util.h" | 25 #import "ios/chrome/test/earl_grey/accessibility_util.h" |
| 26 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 26 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
| 27 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 27 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
| 28 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 28 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
| 29 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 29 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
| 30 #import "ios/testing/wait_util.h" | 30 #import "ios/testing/wait_util.h" |
| 31 #import "ios/third_party/material_components_ios/src/components/Snackbar/src/Mat
erialSnackbar.h" | 31 #import "ios/third_party/material_components_ios/src/components/Snackbar/src/Mat
erialSnackbar.h" |
| 32 #import "ios/web/public/navigation_manager.h" | 32 #import "ios/web/public/navigation_manager.h" |
| 33 #import "ios/web/public/reload_type.h" | 33 #import "ios/web/public/reload_type.h" |
| 34 #import "ios/web/public/test/http_server.h" | 34 #import "ios/web/public/test/http_server/delayed_response_provider.h" |
| 35 #import "ios/web/public/test/http_server_util.h" | 35 #import "ios/web/public/test/http_server/html_response_provider.h" |
| 36 #import "ios/web/public/test/response_providers/delayed_response_provider.h" | 36 #import "ios/web/public/test/http_server/http_server.h" |
| 37 #import "ios/web/public/test/response_providers/html_response_provider.h" | 37 #include "ios/web/public/test/http_server/http_server_util.h" |
| 38 #include "net/base/network_change_notifier.h" | 38 #include "net/base/network_change_notifier.h" |
| 39 | 39 |
| 40 #if !defined(__has_feature) || !__has_feature(objc_arc) | 40 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 41 #error "This file requires ARC support." | 41 #error "This file requires ARC support." |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 const char kContentToRemove[] = "Text that distillation should remove."; | 45 const char kContentToRemove[] = "Text that distillation should remove."; |
| 46 const char kContentToKeep[] = "Text that distillation should keep."; | 46 const char kContentToKeep[] = "Text that distillation should keep."; |
| 47 const char kDistillableTitle[] = "Tomato"; | 47 const char kDistillableTitle[] = "Tomato"; |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 assertWithMatcher:grey_nil()]; | 790 assertWithMatcher:grey_nil()]; |
| 791 TapButtonWithID(IDS_IOS_READING_LIST_EDIT_BUTTON); | 791 TapButtonWithID(IDS_IOS_READING_LIST_EDIT_BUTTON); |
| 792 TapButtonWithID(IDS_IOS_READING_LIST_DELETE_ALL_READ_BUTTON); | 792 TapButtonWithID(IDS_IOS_READING_LIST_DELETE_ALL_READ_BUTTON); |
| 793 | 793 |
| 794 // Verify the background string is displayed. | 794 // Verify the background string is displayed. |
| 795 [[EarlGrey selectElementWithMatcher:EmptyBackground()] | 795 [[EarlGrey selectElementWithMatcher:EmptyBackground()] |
| 796 assertWithMatcher:grey_notNil()]; | 796 assertWithMatcher:grey_notNil()]; |
| 797 } | 797 } |
| 798 | 798 |
| 799 @end | 799 @end |
| OLD | NEW |