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