blob: 67cdc38d2ac39e2327e8f62ec530d34769c540c0 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IDBTestHelper_h
#define IDBTestHelper_h
#include "base/memory/scoped_refptr.h"
#include "modules/indexeddb/IDBValue.h"
#include "v8/include/v8.h"
namespace blink {
std::unique_ptr<IDBValue> CreateNullIDBValueForTesting(v8::Isolate*);
// The created value is an array of true. If create_wrapped_value is true, the
// IDBValue's byte array will be wrapped in a Blob, otherwise it will not be.
std::unique_ptr<IDBValue> CreateIDBValueForTesting(v8::Isolate*,
bool create_wrapped_value);
} // namespace blink
#endif // IDBTestHelper_h