Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ios/web/shell/test/navigation_test_util.h" | |
| 6 | |
| 7 #import <EarlGrey/EarlGrey.h> | |
|
Eugene But (OOO till 7-30)
2016/04/21 22:53:08
Drop this
baxley
2016/04/22 02:02:58
Done.
| |
| 8 | |
| 9 #import "ios/web/public/navigation_manager.h" | |
| 10 #import "ios/web/public/web_state/web_state.h" | |
| 11 #import "ios/web/shell/test/web_shell_test_util.h" | |
| 12 | |
| 13 using web::NavigationManager; | |
| 14 | |
| 15 namespace web { | |
| 16 namespace navigation_test_util { | |
| 17 // TODO(crbug.com/604902): Refactor these utilities into objects that can be | |
| 18 // shared accross the web shell and Chrome. | |
| 19 | |
| 20 void LoadUrl(GURL url) { | |
| 21 ViewController* viewController = | |
|
Eugene But (OOO till 7-30)
2016/04/21 22:53:08
s/viewController/view_controller
baxley
2016/04/22 02:02:58
Done.
| |
| 22 web::web_shell_test_util::GetCurrentViewController(); | |
| 23 | |
| 24 NavigationManager* navigationManager = | |
|
Eugene But (OOO till 7-30)
2016/04/21 22:53:08
s/navigationManager/navigation_manager
baxley
2016/04/22 02:02:58
Done.
| |
| 25 [viewController webState]->GetNavigationManager(); | |
| 26 NavigationManager::WebLoadParams params(url); | |
| 27 params.transition_type = ui::PAGE_TRANSITION_TYPED; | |
| 28 navigationManager->LoadURLWithParams(params); | |
| 29 } | |
| 30 | |
| 31 } // namespace earl_grey_util | |
|
Eugene But (OOO till 7-30)
2016/04/21 22:53:08
s/namespace earl_grey_util/navigation_test_util
baxley
2016/04/22 02:02:58
Done.
| |
| 32 } // namespace web | |
| OLD | NEW |