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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_TYPED_URLS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_TYPED_URLS_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_TYPED_URLS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_TYPED_URLS_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "components/history/core/browser/history_types.h" | 10 #include "components/history/core/browser/history_types.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 history::VisitSource source, | 54 history::VisitSource source, |
55 const base::Time& timestamp); | 55 const base::Time& timestamp); |
56 | 56 |
57 // Deletes a URL from the history DB for a specific sync profile. | 57 // Deletes a URL from the history DB for a specific sync profile. |
58 void DeleteUrlFromHistory(int index, const GURL& url); | 58 void DeleteUrlFromHistory(int index, const GURL& url); |
59 | 59 |
60 // Deletes a list of URLs from the history DB for a specific sync | 60 // Deletes a list of URLs from the history DB for a specific sync |
61 // profile. | 61 // profile. |
62 void DeleteUrlsFromHistory(int index, const std::vector<GURL>& urls); | 62 void DeleteUrlsFromHistory(int index, const std::vector<GURL>& urls); |
63 | 63 |
64 // Modifies an URL stored in history by setting a new title. | |
65 void SetPageTitle(int index, const GURL& url, const std::string& title); | |
66 | |
67 // Returns true if all clients match the verifier profile. | 64 // Returns true if all clients match the verifier profile. |
68 bool CheckAllProfilesHaveSameURLsAsVerifier(); | 65 bool CheckAllProfilesHaveSameURLsAsVerifier(); |
69 | 66 |
70 // Returns true if all clients match the verifier profile and if the | 67 // Returns true if all clients match the verifier profile and if the |
71 // verification doesn't time out. | 68 // verification doesn't time out. |
72 bool AwaitCheckAllProfilesHaveSameURLsAsVerifier(); | 69 bool AwaitCheckAllProfilesHaveSameURLsAsVerifier(); |
73 | 70 |
74 // Checks that the two vectors contain the same set of URLRows (possibly in | 71 // Checks that the two vectors contain the same set of URLRows (possibly in |
75 // a different order). | 72 // a different order). |
76 bool CheckURLRowVectorsAreEqual(const history::URLRows& left, | 73 bool CheckURLRowVectorsAreEqual(const history::URLRows& left, |
(...skipping 13 matching lines...) Expand all Loading... |
90 // Returns a unique timestamp to use when generating page visits | 87 // Returns a unique timestamp to use when generating page visits |
91 // (HistoryService does not like having identical timestamps and will modify | 88 // (HistoryService does not like having identical timestamps and will modify |
92 // the timestamps behind the scenes if it encounters them, which leads to | 89 // the timestamps behind the scenes if it encounters them, which leads to |
93 // spurious test failures when the resulting timestamps aren't what we | 90 // spurious test failures when the resulting timestamps aren't what we |
94 // expect). | 91 // expect). |
95 base::Time GetTimestamp(); | 92 base::Time GetTimestamp(); |
96 | 93 |
97 } // namespace typed_urls_helper | 94 } // namespace typed_urls_helper |
98 | 95 |
99 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_TYPED_URLS_HELPER_H_ | 96 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_TYPED_URLS_HELPER_H_ |
OLD | NEW |