#include "components/sqlite_proto/proto_table_manager.h"
#include <vector>
#include "base/memory/scoped_refptr.h"
#include "base/strings/strcat.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "components/sqlite_proto/key_value_data.h"
#include "components/sqlite_proto/key_value_table.h"
#include "components/sqlite_proto/test_proto.pb.h"
#include "sql/database.h"
#include "sql/meta_table.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace sqlite_proto {
namespace {
MATCHER_P(EqualsProto,
message,
"Match a proto Message equal to the matcher's argument.") { … }
constexpr char kTableName[] = …;
}
TEST(ProtoTableTest, PutReinitializeAndGet) { … }
TEST(ProtoTableTest, ReinitializingWithDifferentVersionClearsTables) { … }
TEST(ProtoTableTest, InitializingWithoutWrittenVersionClearsTables) { … }
TEST(ProtoTableTest, LoadingUnexpectedlyLargeVersionClearsTables) { … }
}