#include "extensions/browser/api/storage/storage_api.h"
#include <stdint.h>
#include <limits>
#include <memory>
#include <set>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "components/crx_file/id_util.h"
#include "components/value_store/leveldb_value_store.h"
#include "components/value_store/value_store.h"
#include "components/value_store/value_store_factory_impl.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
#include "extensions/browser/api/extensions_api_client.h"
#include "extensions/browser/api/storage/settings_storage_quota_enforcer.h"
#include "extensions/browser/api/storage/settings_test_util.h"
#include "extensions/browser/api/storage/storage_frontend.h"
#include "extensions/browser/api/storage/value_store_cache.h"
#include "extensions/browser/api_test_utils.h"
#include "extensions/browser/api_unittest.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/event_router_factory.h"
#include "extensions/browser/extension_function.h"
#include "extensions/browser/test_event_router_observer.h"
#include "extensions/browser/test_extensions_browser_client.h"
#include "extensions/common/api/storage.h"
#include "extensions/common/manifest.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
#include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
namespace extensions {
namespace {
std::unique_ptr<KeyedService> CreateStorageFrontendForTesting(
content::BrowserContext* context) { … }
std::unique_ptr<KeyedService> BuildEventRouter(
content::BrowserContext* context) { … }
}
class StorageApiUnittest : public ApiUnitTest { … };
TEST_F(StorageApiUnittest, RestoreCorruptedStorage) { … }
TEST_F(StorageApiUnittest, StorageAreaOnChanged) { … }
TEST_F(StorageApiUnittest, StorageAreaOnChangedNoListener) { … }
TEST_F(StorageApiUnittest, StorageAreaOnChangedOtherListener) { … }
TEST_F(StorageApiUnittest, StorageAreaOnChangedOnlyOneListener) { … }
TEST_F(StorageApiUnittest, GetBytesInUseIntOverflow) { … }
}