| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/scoped_temp_dir.h" |
| 9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 10 #include "base/memory/scoped_temp_dir.h" | |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
| 13 #include "chrome/browser/history/starred_url_database.h" | 13 #include "chrome/browser/history/starred_url_database.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace history { | 17 namespace history { |
| 18 | 18 |
| 19 class StarredURLDatabaseTest : public testing::Test, | 19 class StarredURLDatabaseTest : public testing::Test, |
| 20 public StarredURLDatabase { | 20 public StarredURLDatabase { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 DeleteURLRow(entry.url_id); | 277 DeleteURLRow(entry.url_id); |
| 278 | 278 |
| 279 // Fix up the table. | 279 // Fix up the table. |
| 280 ASSERT_TRUE(EnsureStarredIntegrity()); | 280 ASSERT_TRUE(EnsureStarredIntegrity()); |
| 281 | 281 |
| 282 // The entry we just created should have been nuked. | 282 // The entry we just created should have been nuked. |
| 283 ASSERT_EQ(initial_count, GetStarredEntryCount()); | 283 ASSERT_EQ(initial_count, GetStarredEntryCount()); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace history | 286 } // namespace history |
| OLD | NEW |