Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: url/gurl_unittest.cc

Issue 253333003: Add a histogram for size of the memory used by redirect chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« tools/metrics/histograms/histograms.xml ('K') | « url/gurl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "url/gurl.h" 6 #include "url/gurl.h"
7 #include "url/url_canon.h" 7 #include "url/url_canon.h"
8 #include "url/url_test_utils.h" 8 #include "url/url_test_utils.h"
9 9
10 // Some implementations of base/basictypes.h may define ARRAYSIZE. 10 // Some implementations of base/basictypes.h may define ARRAYSIZE.
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 EXPECT_TRUE(GURL("HTTPS://BAR").SchemeIsHTTPOrHTTPS()); 628 EXPECT_TRUE(GURL("HTTPS://BAR").SchemeIsHTTPOrHTTPS());
629 EXPECT_FALSE(GURL("ftp://bar/").SchemeIsHTTPOrHTTPS()); 629 EXPECT_FALSE(GURL("ftp://bar/").SchemeIsHTTPOrHTTPS());
630 } 630 }
631 631
632 TEST(GURLTest, SchemeIsWSOrWSS) { 632 TEST(GURLTest, SchemeIsWSOrWSS) {
633 EXPECT_TRUE(GURL("WS://BAR/").SchemeIsWSOrWSS()); 633 EXPECT_TRUE(GURL("WS://BAR/").SchemeIsWSOrWSS());
634 EXPECT_TRUE(GURL("wss://bar/").SchemeIsWSOrWSS()); 634 EXPECT_TRUE(GURL("wss://bar/").SchemeIsWSOrWSS());
635 EXPECT_FALSE(GURL("http://bar/").SchemeIsWSOrWSS()); 635 EXPECT_FALSE(GURL("http://bar/").SchemeIsWSOrWSS());
636 } 636 }
637 637
638 TEST(GURLTest, Bytesize) {
639 EXPECT_EQ(112u, GURL("http://test.com").Bytesize());
640 }
641
638 } // namespace url 642 } // namespace url
OLDNEW
« tools/metrics/histograms/histograms.xml ('K') | « url/gurl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698