chromium/net/cookies/parsed_cookie_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include <string>

#include "base/test/scoped_feature_list.h"
#include "net/base/features.h"
#include "net/cookies/cookie_constants.h"
#include "net/cookies/cookie_inclusion_status.h"
#include "net/cookies/parsed_cookie.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net {

TEST(ParsedCookieTest, TestBasic) {}

TEST(ParsedCookieTest, TestEmpty) {}

TEST(ParsedCookieTest, TestSetEmptyNameValue) {}

TEST(ParsedCookieTest, ParseValueStrings) {}

TEST(ParsedCookieTest, TestQuoted) {}

TEST(ParsedCookieTest, TestNameless) {}

TEST(ParsedCookieTest, TestAttributeCase) {}

TEST(ParsedCookieTest, TestDoubleQuotedNameless) {}

TEST(ParsedCookieTest, QuoteOffTheEnd) {}

TEST(ParsedCookieTest, MissingName) {}

TEST(ParsedCookieTest, MissingValue) {}

TEST(ParsedCookieTest, Whitespace) {}
TEST(ParsedCookieTest, MultipleEquals) {}

TEST(ParsedCookieTest, QuotedTrailingWhitespace) {}

TEST(ParsedCookieTest, TrailingWhitespace) {}

TEST(ParsedCookieTest, LotsOfPairs) {}

TEST(ParsedCookieTest, EnforceSizeConstraints) {}

TEST(ParsedCookieTest, EmbeddedTerminator) {}

TEST(ParsedCookieTest, ParseTokensAndValues) {}

TEST(ParsedCookieTest, SerializeCookieLine) {}

TEST(ParsedCookieTest, SetNameAndValue) {}

TEST(ParsedCookieTest, SetAttributes) {}

// Setting the domain attribute to the empty string should be valid.
TEST(ParsedCookieTest, EmptyDomainAttributeValid) {}

// Set the domain attribute twice in a cookie line. If the second attribute's
// value is empty, it should equal the empty string.
TEST(ParsedCookieTest, MultipleDomainAttributes) {}

TEST(ParsedCookieTest, SetPriority) {}

TEST(ParsedCookieTest, SetSameSite) {}

// Test that the correct enum value is returned for the SameSite attribute
// string.
TEST(ParsedCookieTest, CookieSameSiteStringEnum) {}

TEST(ParsedCookieTest, SettersInputValidation) {}

TEST(ParsedCookieTest, ToCookieLineSpecialTokens) {}

TEST(ParsedCookieTest, SameSiteValues) {}

TEST(ParsedCookieTest, InvalidNonAlphanumericChars) {}

TEST(ParsedCookieTest, ValidNonAlphanumericChars) {}

TEST(ParsedCookieTest, PreviouslyTruncatingCharInCookieLine) {}

TEST(ParsedCookieTest, HtabInNameOrValue) {}

}  // namespace net