chromium/chrome/browser/extensions/api/identity/identity_token_cache_unittest.cc

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

#include "chrome/browser/extensions/api/identity/identity_token_cache.h"

#include <set>
#include <string>

#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions {

namespace {

const char kDefaultExtensionId[] =;

}  // namespace

class IdentityTokenCacheTest : public testing::Test {};

TEST_F(IdentityTokenCacheTest, AccessTokenCacheHit) {}

// The cache should return NOTFOUND status when a token expires.
// Regression test for https://crbug.com/1127187.
TEST_F(IdentityTokenCacheTest, ExpiredAccessTokenCacheHit) {}

TEST_F(IdentityTokenCacheTest, IntermediateValueCacheHit) {}

TEST_F(IdentityTokenCacheTest, CacheHitPriority) {}

TEST_F(IdentityTokenCacheTest, CacheHitAfterExpired) {}

TEST_F(IdentityTokenCacheTest, AccessTokenCacheMiss) {}

TEST_F(IdentityTokenCacheTest, IntermediateValueCacheMiss) {}

TEST_F(IdentityTokenCacheTest, EraseAccessToken) {}

TEST_F(IdentityTokenCacheTest, EraseAccessTokenOthersUnaffected) {}

TEST_F(IdentityTokenCacheTest, EraseAllTokens) {}

TEST_F(IdentityTokenCacheTest, EraseAllTokensForExtension) {}

TEST_F(IdentityTokenCacheTest, GetAccessTokens) {}

// Newly cached access tokens should override previously cached values with the
// same scopes.
TEST_F(IdentityTokenCacheTest, OverrideAccessToken) {}

TEST_F(IdentityTokenCacheTest, OverrideIntermediateToken) {}

TEST_F(IdentityTokenCacheTest, SubsetMatchCacheHit) {}

TEST_F(IdentityTokenCacheTest, SubsetMatchCacheHitPriority) {}

TEST_F(IdentityTokenCacheTest, SubsetMatchCacheHitPriorityOneExpired) {}

TEST_F(IdentityTokenCacheTest, SubsetMatchCacheHitPriorityTwoExpired) {}

}  // namespace extensions