#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) { … }
}
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) { … }
TEST_F(KeyValueTableTest, PutGetDefaultValue) { … }
}