summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/history_unittest.cc')
-rw-r--r--chrome/browser/history/history_unittest.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/chrome/browser/history/history_unittest.cc b/chrome/browser/history/history_unittest.cc
index a8708cd..e589f11 100644
--- a/chrome/browser/history/history_unittest.cc
+++ b/chrome/browser/history/history_unittest.cc
@@ -723,15 +723,16 @@ TEST(HistoryProfileTest, TypicalProfileVersion) {
sqlite3* db;
ASSERT_EQ(SQLITE_OK, sqlite3_open(WideToUTF8(file).c_str(), &db));
- SQLStatement s;
- ASSERT_EQ(SQLITE_OK, s.prepare(db,
- "SELECT value FROM meta WHERE key = 'version'"));
- EXPECT_EQ(SQLITE_ROW, s.step());
- int file_version = s.column_int(0);
-
- sqlite3_close(db);
+ {
+ SQLStatement s;
+ ASSERT_EQ(SQLITE_OK, s.prepare(db,
+ "SELECT value FROM meta WHERE key = 'version'"));
+ EXPECT_EQ(SQLITE_ROW, s.step());
+ int file_version = s.column_int(0);
+ EXPECT_EQ(cur_version, file_version);
+ }
- EXPECT_EQ(cur_version, file_version);
+ ASSERT_EQ(SQLITE_OK, sqlite3_close(db));
}
namespace {