// Copyright 2019 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/net/url_test_util.h" | |
#include "url/gurl.h" | |
namespace net { | |
std::string GetContentAndFragmentForUrl(const GURL& url) { | |
return url.GetContent() + (url.has_ref() ? "#" + url.ref() : ""); | |
} | |
} // namespace net |