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 "base/mac/bind_objc_block.h" | 5 #include "base/mac/bind_objc_block.h" |
6 #include "base/memory/ptr_util.h" | 6 #include "base/memory/ptr_util.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #import "base/test/ios/wait_util.h" | 10 #import "base/test/ios/wait_util.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #import "ios/chrome/test/app/tab_test_util.h" | 22 #import "ios/chrome/test/app/tab_test_util.h" |
23 #include "ios/chrome/test/app/web_view_interaction_test_util.h" | 23 #include "ios/chrome/test/app/web_view_interaction_test_util.h" |
24 #import "ios/chrome/test/earl_grey/chrome_actions.h" | 24 #import "ios/chrome/test/earl_grey/chrome_actions.h" |
25 #import "ios/chrome/test/earl_grey/chrome_assertions.h" | 25 #import "ios/chrome/test/earl_grey/chrome_assertions.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/web/public/test/earl_grey/web_view_matchers.h" | 31 #import "ios/web/public/test/earl_grey/web_view_matchers.h" |
32 #import "ios/web/public/test/http_server.h" | 32 #include "ios/web/public/test/http_server/delayed_response_provider.h" |
33 #import "ios/web/public/test/http_server_util.h" | 33 #include "ios/web/public/test/http_server/html_response_provider.h" |
34 #include "ios/web/public/test/response_providers/delayed_response_provider.h" | 34 #import "ios/web/public/test/http_server/http_server.h" |
35 #include "ios/web/public/test/response_providers/html_response_provider.h" | 35 #include "ios/web/public/test/http_server/http_server_util.h" |
36 #include "ui/base/l10n/l10n_util_mac.h" | 36 #include "ui/base/l10n/l10n_util_mac.h" |
37 #include "url/gurl.h" | 37 #include "url/gurl.h" |
38 | 38 |
39 #if !defined(__has_feature) || !__has_feature(objc_arc) | 39 #if !defined(__has_feature) || !__has_feature(objc_arc) |
40 #error "This file requires ARC support." | 40 #error "This file requires ARC support." |
41 #endif | 41 #endif |
42 | 42 |
43 using chrome_test_util::OpenLinkInNewTabButton; | 43 using chrome_test_util::OpenLinkInNewTabButton; |
44 using chrome_test_util::SettingsMenuButton; | 44 using chrome_test_util::SettingsMenuButton; |
45 using tab_usage_recorder_test_util::OpenNewIncognitoTabUsingUIAndEvictMainTabs; | 45 using tab_usage_recorder_test_util::OpenNewIncognitoTabUsingUIAndEvictMainTabs; |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 [[GREYUIThreadExecutor sharedInstance] drainUntilIdle]; | 833 [[GREYUIThreadExecutor sharedInstance] drainUntilIdle]; |
834 } | 834 } |
835 // The deleted tabs are purged during foregrounding and backgrounding. | 835 // The deleted tabs are purged during foregrounding and backgrounding. |
836 chrome_test_util::SimulateTabsBackgrounding(); | 836 chrome_test_util::SimulateTabsBackgrounding(); |
837 // Make sure |evicted_tabs_| purged the deleted tabs. | 837 // Make sure |evicted_tabs_| purged the deleted tabs. |
838 int evicted = chrome_test_util::GetEvictedMainTabCount(); | 838 int evicted = chrome_test_util::GetEvictedMainTabCount(); |
839 GREYAssertEqual(evicted, 0, @"Check number of evicted tabs"); | 839 GREYAssertEqual(evicted, 0, @"Check number of evicted tabs"); |
840 } | 840 } |
841 | 841 |
842 @end | 842 @end |
OLD | NEW |