blob: c2a2b8a69dfdf89fd918115badc3c8bad3a0268c [file] [log] [blame]
// Copyright 2017 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.
#include "ios/web/public/test/url_test_util.h"
#import "ios/web/navigation/navigation_item_impl.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace web {
base::string16 GetDisplayTitleForUrl(const GURL& url) {
return NavigationItemImpl::GetDisplayTitleForURL(url);
}
std::string GetContentAndFragmentForUrl(const GURL& url) {
return url.GetContent() + (url.has_ref() ? "#" + url.ref() : "");
}
} // namespace web