chromium/chrome/browser/extensions/api/cookies/cookies_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/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

// Tests common functionality used by the Chrome Extensions Cookies API
// implementation.

#include "chrome/common/extensions/api/cookies.h"

#include <stddef.h>

#include <memory>
#include <optional>
#include <utility>
#include <vector>

#include "base/test/gtest_util.h"
#include "base/values.h"
#include "chrome/browser/extensions/api/cookies/cookies_helpers.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

Cookie;
CookieStore;

GetAll;

namespace extensions {

constexpr char kDomainKey[] =;

namespace {

struct DomainMatchCase {};

}  // namespace

class ExtensionCookiesTest : public testing::Test {};

TEST_F(ExtensionCookiesTest, StoreIdProfileConversion) {}

TEST_F(ExtensionCookiesTest, ExtensionTypeCreation) {}

TEST_F(ExtensionCookiesTest, GetURLFromCanonicalCookie) {}

TEST_F(ExtensionCookiesTest, EmptyDictionary) {}

TEST_F(ExtensionCookiesTest, DomainMatching) {}

TEST_F(ExtensionCookiesTest, DecodeUTF8WithErrorHandling) {}

TEST_F(ExtensionCookiesTest, PartitionKeySerialization) {}

}  // namespace extensions