blob: f5c8390dadc23e973a07bd72d6c6c9b4b25d1f9c [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.
#ifndef IOS_WEB_PUBLIC_TEST_URL_TEST_UTIL_H_
#define IOS_WEB_PUBLIC_TEST_URL_TEST_UTIL_H_
#include "base/strings/string16.h"
class GURL;
namespace web {
// Returns a formatted version of |url| that would be used as the fallback title
// for a page with that URL.
base::string16 GetDisplayTitleForUrl(const GURL& url);
// Returns the content and frament of |url| concatenated together. For example:
//
// http://www.example.com/some/content.html?param1=foo#fragment_data
//
// Returns "www.example.com/some/content.html?param1=foo#fragment_data".
std::string GetContentAndFragmentForUrl(const GURL& url);
} // namespace web
#endif // IOS_WEB_PUBLIC_TEST_URL_TEST_UTIL_H_