| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 std::vector<unsigned char> favicon; | 579 std::vector<unsigned char> favicon; |
| 580 gfx::PNGCodec::EncodeBGRASkBitmap(bmp, false, &favicon); | 580 gfx::PNGCodec::EncodeBGRASkBitmap(bmp, false, &favicon); |
| 581 return favicon; | 581 return favicon; |
| 582 } | 582 } |
| 583 | 583 |
| 584 std::string IndexedURL(int i) { | 584 std::string IndexedURL(int i) { |
| 585 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i); | 585 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i); |
| 586 } | 586 } |
| 587 | 587 |
| 588 std::wstring IndexedURLTitle(int i) { | 588 std::wstring IndexedURLTitle(int i) { |
| 589 return StringPrintf(L"URL Title %d", i); | 589 return ASCIIToWide(StringPrintf("URL Title %d", i)); |
| 590 } | 590 } |
| 591 | 591 |
| 592 std::wstring IndexedFolderName(int i) { | 592 std::wstring IndexedFolderName(int i) { |
| 593 return StringPrintf(L"Folder Name %d", i); | 593 return ASCIIToWide(StringPrintf("Folder Name %d", i)); |
| 594 } | 594 } |
| 595 | 595 |
| 596 std::wstring IndexedSubfolderName(int i) { | 596 std::wstring IndexedSubfolderName(int i) { |
| 597 return StringPrintf(L"Subfolder Name %d", i); | 597 return ASCIIToWide(StringPrintf("Subfolder Name %d", i)); |
| 598 } | 598 } |
| 599 | 599 |
| 600 std::wstring IndexedSubsubfolderName(int i) { | 600 std::wstring IndexedSubsubfolderName(int i) { |
| 601 return StringPrintf(L"Subsubfolder Name %d", i); | 601 return ASCIIToWide(StringPrintf("Subsubfolder Name %d", i)); |
| 602 } | 602 } |
| 603 | 603 |
| 604 } // namespace bookmarks_helper | 604 } // namespace bookmarks_helper |
| OLD | NEW |