url_util_unittest.cc 522 B

12345678910111213141516171819
  1. // Copyright 2013 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/web/common/url_util.h"
  5. #include "testing/gtest/include/gtest/gtest.h"
  6. #include "testing/platform_test.h"
  7. namespace web {
  8. using URLUtilTest = PlatformTest;
  9. TEST_F(URLUtilTest, GURLByRemovingRefFromGURL) {
  10. GURL url("http://foo.com/bar#baz");
  11. EXPECT_EQ(GURL("http://foo.com/bar"), GURLByRemovingRefFromGURL(url));
  12. }
  13. } // namespace web