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 "content/browser/dom_storage/dom_storage_database.h" | 5 #include "content/browser/dom_storage/dom_storage_database.h" |
6 | 6 |
7 #include "base/file_util.h" | |
8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.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 "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "content/public/common/content_paths.h" | 12 #include "content/public/common/content_paths.h" |
13 #include "sql/statement.h" | 13 #include "sql/statement.h" |
14 #include "sql/test/scoped_error_ignorer.h" | 14 #include "sql/test/scoped_error_ignorer.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/sqlite/sqlite3.h" | 16 #include "third_party/sqlite/sqlite3.h" |
17 | 17 |
18 using base::ASCIIToUTF16; | 18 using base::ASCIIToUTF16; |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 EXPECT_EQ(0u, values.size()); | 385 EXPECT_EQ(0u, values.size()); |
386 EXPECT_FALSE(db.IsOpen()); | 386 EXPECT_FALSE(db.IsOpen()); |
387 | 387 |
388 EXPECT_TRUE(base::PathExists(temp_dir.path())); | 388 EXPECT_TRUE(base::PathExists(temp_dir.path())); |
389 | 389 |
390 ASSERT_TRUE(ignore_errors.CheckIgnoredErrors()); | 390 ASSERT_TRUE(ignore_errors.CheckIgnoredErrors()); |
391 } | 391 } |
392 } | 392 } |
393 | 393 |
394 } // namespace content | 394 } // namespace content |
OLD | NEW |