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/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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 const BookmarkNode* GetOtherNode(int index) { | 268 const BookmarkNode* GetOtherNode(int index) { |
269 return GetBookmarkModel(index)->other_node(); | 269 return GetBookmarkModel(index)->other_node(); |
270 } | 270 } |
271 | 271 |
272 const BookmarkNode* GetSyncedBookmarksNode(int index) { | 272 const BookmarkNode* GetSyncedBookmarksNode(int index) { |
273 return GetBookmarkModel(index)->mobile_node(); | 273 return GetBookmarkModel(index)->mobile_node(); |
274 } | 274 } |
275 | 275 |
276 BookmarkModel* GetVerifierBookmarkModel() { | 276 BookmarkModel* GetVerifierBookmarkModel() { |
277 return test()->verifier()->GetBookmarkModel(); | 277 return BookmarkModelFactory::GetForProfile(test()->verifier()); |
278 } | 278 } |
279 | 279 |
280 const BookmarkNode* AddURL(int profile, | 280 const BookmarkNode* AddURL(int profile, |
281 const std::wstring& title, | 281 const std::wstring& title, |
282 const GURL& url) { | 282 const GURL& url) { |
283 return AddURL(profile, GetBookmarkBarNode(profile), 0, title, url); | 283 return AddURL(profile, GetBookmarkBarNode(profile), 0, title, url); |
284 } | 284 } |
285 | 285 |
286 const BookmarkNode* AddURL(int profile, | 286 const BookmarkNode* AddURL(int profile, |
287 int index, | 287 int index, |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 | 600 |
601 std::wstring IndexedSubfolderName(int i) { | 601 std::wstring IndexedSubfolderName(int i) { |
602 return StringPrintf(L"Subfolder Name %d", i); | 602 return StringPrintf(L"Subfolder Name %d", i); |
603 } | 603 } |
604 | 604 |
605 std::wstring IndexedSubsubfolderName(int i) { | 605 std::wstring IndexedSubsubfolderName(int i) { |
606 return StringPrintf(L"Subsubfolder Name %d", i); | 606 return StringPrintf(L"Subsubfolder Name %d", i); |
607 } | 607 } |
608 | 608 |
609 } // namespace bookmarks_helper | 609 } // namespace bookmarks_helper |
OLD | NEW |