| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "sql/connection.h" | 10 #include "sql/connection.h" |
| 11 #include "sql/statement.h" | 11 #include "sql/statement.h" |
| 12 #include "sql/test/error_callback_support.h" | 12 #include "sql/test/error_callback_support.h" |
| 13 #include "sql/test/scoped_error_ignorer.h" | 13 #include "sql/test/scoped_error_ignorer.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/sqlite/sqlite3.h" | 15 #include "third_party/sqlite/sqlite3.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 s.Reset(false); | 122 s.Reset(false); |
| 123 // Verify that we can get all rows again. | 123 // Verify that we can get all rows again. |
| 124 ASSERT_TRUE(s.Step()); | 124 ASSERT_TRUE(s.Step()); |
| 125 EXPECT_EQ(12, s.ColumnInt(0)); | 125 EXPECT_EQ(12, s.ColumnInt(0)); |
| 126 EXPECT_FALSE(s.Step()); | 126 EXPECT_FALSE(s.Step()); |
| 127 | 127 |
| 128 s.Reset(true); | 128 s.Reset(true); |
| 129 ASSERT_FALSE(s.Step()); | 129 ASSERT_FALSE(s.Step()); |
| 130 } | 130 } |
| OLD | NEW |