blob: c546cec8fb6333677b8aa1a8939f9c2293df5a15 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/web/public/test/navigation_test_util.h"
#import "ios/web/public/navigation_manager.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
using web::NavigationManager;
namespace web {
namespace test {
void LoadUrl(web::WebState* web_state, const GURL& url) {
NavigationManager* navigation_manager = web_state->GetNavigationManager();
NavigationManager::WebLoadParams params(url);
params.transition_type = ui::PAGE_TRANSITION_TYPED;
navigation_manager->LoadURLWithParams(params);
}
} // namespace test
} // namespace web