chromium/components/sqlite_proto/key_value_table_unittest.cc

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

#include "components/sqlite_proto/key_value_table.h"

#include "base/memory/scoped_refptr.h"
#include "components/sqlite_proto/test_proto.pb.h"
#include "sql/database.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ElementsAre;
Pair;
UnorderedElementsAre;

namespace sqlite_proto {

namespace {

MATCHER_P(EqualsProto,
          message,
          "Match a proto Message equal to the matcher's argument.") {}

bool CreateProtoTable(sql::Database* db) {}

}  // namespace

class KeyValueTableTest : public ::testing::Test {};

TEST_F(KeyValueTableTest, Empty) {}

TEST_F(KeyValueTableTest, PutAndGet) {}

TEST_F(KeyValueTableTest, Update) {}

TEST_F(KeyValueTableTest, DeleteNonexistent) {}

TEST_F(KeyValueTableTest, Delete) {}

TEST_F(KeyValueTableTest, DeleteAll) {}

// Storing an element with a default proto value (zero byte size) should work;
// this can be useful since a default value can have different semantics from a
// missing value.
TEST_F(KeyValueTableTest, PutGetDefaultValue) {}

}  // namespace sqlite_proto