chromium/extensions/renderer/storage_area_unittest.cc

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

#include "extensions/renderer/storage_area.h"

#include "base/strings/stringprintf.h"
#include "base/test/values_test_util.h"
#include "components/version_info/channel.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/features/feature_channel.h"
#include "extensions/common/mojom/context_type.mojom.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "extensions/common/mojom/frame.mojom.h"
#include "extensions/renderer/bindings/api_binding_test_util.h"
#include "extensions/renderer/bindings/api_binding_util.h"
#include "extensions/renderer/bindings/api_invocation_errors.h"
#include "extensions/renderer/native_extension_bindings_system.h"
#include "extensions/renderer/native_extension_bindings_system_test_base.h"
#include "extensions/renderer/script_context.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace extensions {

StorageAreaTest;

// Test that trying to use StorageArea.get without a StorageArea `this` fails
// (with a helpful error message).
TEST_F(StorageAreaTest, TestUnboundedUse) {}

TEST_F(StorageAreaTest, TestUseAfterInvalidation) {}

TEST_F(StorageAreaTest, InvalidInvocationError) {}

TEST_F(StorageAreaTest, HasOnChanged) {}

TEST_F(StorageAreaTest, PromiseBasedFunctionsForManifestV3) {}

TEST_F(StorageAreaTest, PromiseBasedFunctionsDisallowedForManifestV2) {}

}  // namespace extensions