#include <utility>
#include "base/strings/strcat.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#include "extensions/common/api/oauth2.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_handler_helpers.h"
#include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
#include "extensions/common/manifest_test.h"
#include "extensions/common/mojom/manifest.mojom-shared.h"
#include "testing/gtest/include/gtest/gtest.h"
OAuth2Info;
ManifestLocation;
namespace extensions {
keys;
errors;
namespace {
TokenizeDictionaryPath;
const char kExtensionKey[] = …;
const char kAutoApproveNotAllowedWarning[] = …;
std::string GetOauth2KeyPath(const char* sub_key) { … }
}
class OAuth2ManifestTest : public ManifestTest { … };
TEST_F(OAuth2ManifestTest, OAuth2SectionParsing) { … }
TEST_F(OAuth2ManifestTest, AutoApproveNotSetExtensionNotOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveFalseExtensionNotOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveTrueExtensionNotOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveInvalidExtensionNotOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveNotSetExtensionOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveFalseExtensionOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveTrueExtensionOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, AutoApproveInvalidExtensionOnAllowlist) { … }
TEST_F(OAuth2ManifestTest, InvalidClientId) { … }
TEST_F(OAuth2ManifestTest, ComponentInvalidClientId) { … }
TEST_F(OAuth2ManifestTest, ComponentWithChromeClientId) { … }
TEST_F(OAuth2ManifestTest, ComponentWithStandardClientId) { … }
}