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 "chrome/browser/history/android/android_provider_backend.h" | 5 #include "chrome/browser/history/android/android_provider_backend.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/scoped_temp_dir.h" | 12 #include "base/scoped_temp_dir.h" |
13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "chrome/browser/bookmarks/bookmark_model.h" | 15 #include "chrome/browser/bookmarks/bookmark_model.h" |
16 #include "chrome/browser/bookmarks/bookmark_service.h" | 16 #include "chrome/browser/bookmarks/bookmark_service.h" |
17 #include "chrome/browser/history/android/android_time.h" | 17 #include "chrome/browser/history/android/android_time.h" |
18 #include "chrome/browser/history/history_backend.h" | 18 #include "chrome/browser/history/history_backend.h" |
19 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
20 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
22 #include "chrome/test/base/testing_browser_process.h" | 22 #include "chrome/test/base/testing_browser_process.h" |
23 #include "chrome/test/base/testing_profile_manager.h" | 23 #include "chrome/test/base/testing_profile_manager.h" |
24 #include "chrome/test/base/testing_profile.h" | 24 #include "chrome/test/base/testing_profile.h" |
25 #include "chrome/test/base/ui_test_utils.h" | 25 #include "chrome/test/base/ui_test_utils.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "content/test/test_browser_thread.h" | 27 #include "content/public/test/test_browser_thread.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 | 29 |
30 using base::Time; | 30 using base::Time; |
31 using base::TimeDelta; | 31 using base::TimeDelta; |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
33 | 33 |
34 namespace history { | 34 namespace history { |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1725 // Query by folder=1, the row2 should returned. | 1725 // Query by folder=1, the row2 should returned. |
1726 statement.reset(backend->QueryHistoryAndBookmarks( | 1726 statement.reset(backend->QueryHistoryAndBookmarks( |
1727 projections, std::string("folder=1"), std::vector<string16>(), | 1727 projections, std::string("folder=1"), std::vector<string16>(), |
1728 std::string("url ASC"))); | 1728 std::string("url ASC"))); |
1729 ASSERT_TRUE(statement->statement()->Step()); | 1729 ASSERT_TRUE(statement->statement()->Step()); |
1730 EXPECT_EQ(row2.url(), GURL(statement->statement()->ColumnString(0))); | 1730 EXPECT_EQ(row2.url(), GURL(statement->statement()->ColumnString(0))); |
1731 EXPECT_FALSE(statement->statement()->Step()); | 1731 EXPECT_FALSE(statement->statement()->Step()); |
1732 } | 1732 } |
1733 | 1733 |
1734 } // namespace history | 1734 } // namespace history |
OLD | NEW |