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

Unified Diff: sql/statement_unittest.cc

Issue 8899012: Put debugging assertions into sql::Statement. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops, Execute() should stay loose. Created 9 years 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
« no previous file with comments | « sql/statement.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/statement_unittest.cc
diff --git a/sql/statement_unittest.cc b/sql/statement_unittest.cc
index 1d10fe0b1ef20b7da4abcdf22025058c5244280e..b6b6aa8b5f9b4c184271151d1f1e0ec2397bbd9a 100644
--- a/sql/statement_unittest.cc
+++ b/sql/statement_unittest.cc
@@ -70,13 +70,9 @@ class SQLStatementTest : public testing::Test {
TEST_F(SQLStatementTest, Assign) {
sql::Statement s;
- EXPECT_FALSE(s); // bool conversion operator.
- EXPECT_TRUE(!s); // ! operator.
EXPECT_FALSE(s.is_valid());
s.Assign(db().GetUniqueStatement("CREATE TABLE foo (a, b)"));
- EXPECT_TRUE(s);
- EXPECT_FALSE(!s);
EXPECT_TRUE(s.is_valid());
}
« no previous file with comments | « sql/statement.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698