| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "sql/meta_table.h" | 5 #include "sql/meta_table.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 9 #include "sql/connection.h" | 11 #include "sql/connection.h" |
| 10 #include "sql/statement.h" | 12 #include "sql/statement.h" |
| 11 #include "sql/test/sql_test_base.h" | 13 #include "sql/test/sql_test_base.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 15 |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 using SQLMetaTableTest = sql::SQLTestBase; | 18 using SQLMetaTableTest = sql::SQLTestBase; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 EXPECT_TRUE(meta_table.SetValue(kKey, kValue)); | 251 EXPECT_TRUE(meta_table.SetValue(kKey, kValue)); |
| 250 EXPECT_TRUE(meta_table.GetValue(kKey, &value)); | 252 EXPECT_TRUE(meta_table.GetValue(kKey, &value)); |
| 251 EXPECT_EQ(kValue, value); | 253 EXPECT_EQ(kValue, value); |
| 252 | 254 |
| 253 // After delete value isn't present. | 255 // After delete value isn't present. |
| 254 EXPECT_TRUE(meta_table.DeleteKey(kKey)); | 256 EXPECT_TRUE(meta_table.DeleteKey(kKey)); |
| 255 EXPECT_FALSE(meta_table.GetValue(kKey, &value)); | 257 EXPECT_FALSE(meta_table.GetValue(kKey, &value)); |
| 256 } | 258 } |
| 257 | 259 |
| 258 } // namespace | 260 } // namespace |
| OLD | NEW |