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

Side by Side Diff: net/base/cookie_util_unittest.cc

Issue 9703011: Move the cookie store implementation into its own directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net/base/cookies/ -> net/cookies/ Created 8 years, 9 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
« no previous file with comments | « net/base/cookie_util.cc ('k') | net/cookies/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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
5 #include "base/basictypes.h"
6 #include "net/base/cookie_util.h"
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 TEST(CookieUtilTest, TestDomainIsHostOnly) {
10 const struct {
11 const char* str;
12 const bool is_host_only;
13 } tests[] = {
14 { "", true },
15 { "www.google.com", true },
16 { ".google.com", false }
17 };
18
19 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
20 EXPECT_EQ(tests[i].is_host_only,
21 net::cookie_util::DomainIsHostOnly(tests[i].str));
22 }
23 }
OLDNEW
« no previous file with comments | « net/base/cookie_util.cc ('k') | net/cookies/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698