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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller_unittest.mm

Issue 2060483003: [ios] Extracted web_test.h classes into separate files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 4 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/web/test/web_test_with_web_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "ios/web/web_state/ui/crw_web_controller.h" 5 #import "ios/web/web_state/ui/crw_web_controller.h"
6 6
7 #import <WebKit/WebKit.h> 7 #import <WebKit/WebKit.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/ios/ios_util.h" 12 #include "base/ios/ios_util.h"
13 #import "base/mac/bind_objc_block.h" 13 #import "base/mac/bind_objc_block.h"
14 #include "base/mac/scoped_nsobject.h" 14 #include "base/mac/scoped_nsobject.h"
15 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
16 #include "base/test/histogram_tester.h" 16 #include "base/test/histogram_tester.h"
17 #import "base/test/ios/wait_util.h" 17 #import "base/test/ios/wait_util.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #import "ios/testing/ocmock_complex_type_helper.h" 19 #import "ios/testing/ocmock_complex_type_helper.h"
20 #include "ios/web/navigation/crw_session_controller.h" 20 #include "ios/web/navigation/crw_session_controller.h"
21 #include "ios/web/navigation/crw_session_entry.h" 21 #include "ios/web/navigation/crw_session_entry.h"
22 #include "ios/web/navigation/navigation_item_impl.h" 22 #include "ios/web/navigation/navigation_item_impl.h"
23 #import "ios/web/navigation/navigation_manager_impl.h" 23 #import "ios/web/navigation/navigation_manager_impl.h"
24 #include "ios/web/public/referrer.h" 24 #include "ios/web/public/referrer.h"
25 #import "ios/web/public/test/test_web_client.h"
25 #include "ios/web/public/test/test_web_view_content_view.h" 26 #include "ios/web/public/test/test_web_view_content_view.h"
26 #import "ios/web/public/web_state/crw_web_controller_observer.h" 27 #import "ios/web/public/web_state/crw_web_controller_observer.h"
27 #import "ios/web/public/web_state/ui/crw_content_view.h" 28 #import "ios/web/public/web_state/ui/crw_content_view.h"
28 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h" 29 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h"
29 #include "ios/web/public/web_state/url_verification_constants.h" 30 #include "ios/web/public/web_state/url_verification_constants.h"
30 #import "ios/web/test/web_test.h" 31 #import "ios/web/test/web_test.h"
31 #import "ios/web/test/wk_web_view_crash_utils.h" 32 #import "ios/web/test/wk_web_view_crash_utils.h"
32 #include "ios/web/web_state/blocked_popup_info.h" 33 #include "ios/web/web_state/blocked_popup_info.h"
33 #import "ios/web/web_state/js/crw_js_invoke_parameter_queue.h" 34 #import "ios/web/web_state/js/crw_js_invoke_parameter_queue.h"
34 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" 35 #import "ios/web/web_state/ui/crw_web_controller_container_view.h"
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 1062
1062 [webController_ setDelegate:delegate]; 1063 [webController_ setDelegate:delegate];
1063 web::SimulateWKWebViewCrash(webView_); 1064 web::SimulateWKWebViewCrash(webView_);
1064 1065
1065 EXPECT_OCMOCK_VERIFY(delegate); 1066 EXPECT_OCMOCK_VERIFY(delegate);
1066 EXPECT_FALSE([webController_ isViewAlive]); 1067 EXPECT_FALSE([webController_ isViewAlive]);
1067 [webController_ setDelegate:nil]; 1068 [webController_ setDelegate:nil];
1068 }; 1069 };
1069 1070
1070 } // namespace 1071 } // namespace
OLDNEW
« no previous file with comments | « ios/web/test/web_test_with_web_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698