Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: sql/connection_unittest.cc

Issue 10989063: Changed DB to store node positions as Ordinals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Implemented feedback changes. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sql/connection_unittest.cc
diff --git a/sql/connection_unittest.cc b/sql/connection_unittest.cc
index e50043fa940e731b9fe9dde503f5757cc60a2642..5e5b65ee57fe3840601308423a4b1440d23e8fc8 100644
--- a/sql/connection_unittest.cc
+++ b/sql/connection_unittest.cc
@@ -110,6 +110,13 @@ TEST_F(SQLConnectionTest, DoesStuffExist) {
EXPECT_FALSE(db().DoesColumnExist("bar", "b"));
}
+TEST_F(SQLConnectionTest, GetColumnType) {
+ ASSERT_TRUE(db().Execute("CREATE TABLE foo (a bigint, b varchar)"));
+
+ EXPECT_EQ(db().GetColumnType(0), COLUMN_TYPE_INTEGER);
+ EXPECT_EQ(db().GetColumnType(1), COLUMN_TYPE_TEXT);
+}
+
TEST_F(SQLConnectionTest, GetLastInsertRowId) {
ASSERT_TRUE(db().Execute("CREATE TABLE foo (id INTEGER PRIMARY KEY, value)"));

Powered by Google App Engine
This is Rietveld 408576698