summaryrefslogtreecommitdiffstats
path: root/ios/web/url_util_unittest.cc
blob: 5dbf63e6be99a6160355b6a398874a977d6d2c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2013 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/url_util.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace web {

TEST(URLUtilTest, GURLByRemovingRefFromGURL) {
  GURL url("http://foo.com/bar#baz");
  EXPECT_EQ(GURL("http://foo.com/bar"), GURLByRemovingRefFromGURL(url));
}

}  // namespace web