url_test_util.cc 392 B

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