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 "chrome/browser/sync/test/integration/bookmarks_helper.h" | 5 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 257 } |
258 | 258 |
259 const BookmarkNode* GetBookmarkBarNode(int index) { | 259 const BookmarkNode* GetBookmarkBarNode(int index) { |
260 return GetBookmarkModel(index)->bookmark_bar_node(); | 260 return GetBookmarkModel(index)->bookmark_bar_node(); |
261 } | 261 } |
262 | 262 |
263 const BookmarkNode* GetOtherNode(int index) { | 263 const BookmarkNode* GetOtherNode(int index) { |
264 return GetBookmarkModel(index)->other_node(); | 264 return GetBookmarkModel(index)->other_node(); |
265 } | 265 } |
266 | 266 |
| 267 const BookmarkNode* GetSyncedBookmarksNode(int index) { |
| 268 return GetBookmarkModel(index)->mobile_node(); |
| 269 } |
| 270 |
267 BookmarkModel* GetVerifierBookmarkModel() { | 271 BookmarkModel* GetVerifierBookmarkModel() { |
268 return test()->verifier()->GetBookmarkModel(); | 272 return test()->verifier()->GetBookmarkModel(); |
269 } | 273 } |
270 | 274 |
271 const BookmarkNode* AddURL(int profile, | 275 const BookmarkNode* AddURL(int profile, |
272 const std::wstring& title, | 276 const std::wstring& title, |
273 const GURL& url) { | 277 const GURL& url) { |
274 return AddURL(profile, GetBookmarkBarNode(profile), 0, title, url); | 278 return AddURL(profile, GetBookmarkBarNode(profile), 0, title, url); |
275 } | 279 } |
276 | 280 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 595 |
592 std::wstring IndexedSubfolderName(int i) { | 596 std::wstring IndexedSubfolderName(int i) { |
593 return StringPrintf(L"Subfolder Name %d", i); | 597 return StringPrintf(L"Subfolder Name %d", i); |
594 } | 598 } |
595 | 599 |
596 std::wstring IndexedSubsubfolderName(int i) { | 600 std::wstring IndexedSubsubfolderName(int i) { |
597 return StringPrintf(L"Subsubfolder Name %d", i); | 601 return StringPrintf(L"Subsubfolder Name %d", i); |
598 } | 602 } |
599 | 603 |
600 } // namespace bookmarks_helper | 604 } // namespace bookmarks_helper |
OLD | NEW |