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

Unified Diff: net/cookies/cookie_constants_unittest.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cookies/cookie_constants.cc ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_constants_unittest.cc
diff --git a/net/cookies/cookie_constants_unittest.cc b/net/cookies/cookie_constants_unittest.cc
deleted file mode 100644
index 87fa1c1b10703a1a9aa7e9947055bfd53b25b75a..0000000000000000000000000000000000000000
--- a/net/cookies/cookie_constants_unittest.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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 "base/basictypes.h"
-#include "net/cookies/cookie_constants.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-
-TEST(CookieConstantsTest, TestCookiePriority) {
- // Basic cases.
- EXPECT_EQ("low", CookiePriorityToString(COOKIE_PRIORITY_LOW));
- EXPECT_EQ("medium", CookiePriorityToString(COOKIE_PRIORITY_MEDIUM));
- EXPECT_EQ("high", CookiePriorityToString(COOKIE_PRIORITY_HIGH));
-
- EXPECT_EQ(COOKIE_PRIORITY_LOW, StringToCookiePriority("low"));
- EXPECT_EQ(COOKIE_PRIORITY_MEDIUM, StringToCookiePriority("medium"));
- EXPECT_EQ(COOKIE_PRIORITY_HIGH, StringToCookiePriority("high"));
-
- // Case Insensitivity of StringToCookiePriority().
- EXPECT_EQ(COOKIE_PRIORITY_LOW, StringToCookiePriority("LOW"));
- EXPECT_EQ(COOKIE_PRIORITY_MEDIUM, StringToCookiePriority("Medium"));
- EXPECT_EQ(COOKIE_PRIORITY_HIGH, StringToCookiePriority("hiGH"));
-
- // Value of default priority.
- EXPECT_EQ(COOKIE_PRIORITY_DEFAULT, COOKIE_PRIORITY_MEDIUM);
-
- // Numeric values.
- EXPECT_LT(COOKIE_PRIORITY_LOW, COOKIE_PRIORITY_MEDIUM);
- EXPECT_LT(COOKIE_PRIORITY_MEDIUM, COOKIE_PRIORITY_HIGH);
-
- // Unrecognized tokens are interpreted as COOKIE_PRIORITY_DEFAULT.
- const char* const bad_tokens[] = {
- "", "lo", "lowerest", "high ", " high", "0"};
- for (size_t i = 0; i < arraysize(bad_tokens); ++i) {
- EXPECT_EQ(COOKIE_PRIORITY_DEFAULT, StringToCookiePriority(bad_tokens[i]));
- }
-}
-
-} // namespace net
« no previous file with comments | « net/cookies/cookie_constants.cc ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698