chromium/content/browser/indexed_db/mock_indexed_db_factory_client.h

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

#ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_CLIENT_H_
#define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_CLIENT_H_

#include <stdint.h>

#include <vector>

#include "base/functional/callback.h"
#include "base/memory/raw_ref.h"
#include "content/browser/indexed_db/indexed_db_connection.h"
#include "content/browser/indexed_db/indexed_db_factory_client.h"
#include "third_party/blink/public/common/indexeddb/indexeddb_key.h"

namespace blink {
struct IndexedDBDatabaseMetadata;
}

namespace content {

class MockIndexedDBFactoryClient : public IndexedDBFactoryClient {};

// This class wraps a `MockIndexedDBFactoryClient`, passing through all
// `IndexedDBFactoryClient` methods. This allows a test to create an underlying
// `MockIndexedDBFactoryClient` and pass ownership of a wrapper to the pending
// connection.
class ThunkFactoryClient : public MockIndexedDBFactoryClient {};

}  // namespace content

#endif  // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_CLIENT_H_