Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Issue 4749003: Provide sync integration tests with a way to set a favicon for a bookmark. (Closed)

Created:
10 years, 1 month ago by Raghu Simha
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), ben+cc_chromium.org, idana, Paweł Hajdan Jr., tim (not reviewing), Raghu Simha
Visibility:
Public.

Description

Provide sync integration tests with a way to set a favicon for a bookmark. The sync integration test framework does not provide tests with a way to set a favicon for a bookmark and verify that it gets synced. This patch adds a method called SetFavicon, that allows tests to set either a generic favicon, or a variable favicon (using an index) for a bookmark. BUG=57234 TEST=sync_integration_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65840

Patch Set 1 : "" #

Total comments: 4

Patch Set 2 : CR feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -24 lines) Patch
M chrome/browser/sync/glue/bookmark_change_processor.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_change_processor.cc View 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/test/live_sync/bookmark_model_verifier.h View 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/test/live_sync/bookmark_model_verifier.cc View 6 chunks +80 lines, -10 lines 0 comments Download
M chrome/test/live_sync/live_bookmarks_sync_test.h View 1 3 chunks +35 lines, -0 lines 0 comments Download
M chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc View 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Raghu Simha
Tim, please review.
10 years, 1 month ago (2010-11-10 00:56:15 UTC) #1
Raghu Simha
Tim is out of town, and may not be able to get to this for ...
10 years, 1 month ago (2010-11-11 01:36:25 UTC) #2
Raghu Simha
Ping.
10 years, 1 month ago (2010-11-11 18:39:33 UTC) #3
tim (not reviewing)
I can look at this now. On Thu, Nov 11, 2010 at 6:39 PM, <rsimha@chromium.org> ...
10 years, 1 month ago (2010-11-11 19:19:18 UTC) #4
tim (not reviewing)
Please address comments, LGTM after. http://codereview.chromium.org/4749003/diff/16002/chrome/test/live_sync/live_bookmarks_sync_test.h File chrome/test/live_sync/live_bookmarks_sync_test.h (right): http://codereview.chromium.org/4749003/diff/16002/chrome/test/live_sync/live_bookmarks_sync_test.h#newcode297 chrome/test/live_sync/live_bookmarks_sync_test.h:297: // Creates a unique ...
10 years, 1 month ago (2010-11-11 19:25:34 UTC) #5
Raghu Simha
10 years, 1 month ago (2010-11-11 19:39:45 UTC) #6
Thanks. Will commmit after the trybots go green.

http://codereview.chromium.org/4749003/diff/16002/chrome/test/live_sync/live_...
File chrome/test/live_sync/live_bookmarks_sync_test.h (right):

http://codereview.chromium.org/4749003/diff/16002/chrome/test/live_sync/live_...
chrome/test/live_sync/live_bookmarks_sync_test.h:297: // Creates a unique
favicon using index |i|.
On 2010/11/11 19:25:34, timsteele wrote:
> maybe |seed| is a better name?

Done.

http://codereview.chromium.org/4749003/diff/16002/chrome/test/live_sync/two_c...
File chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc (right):

http://codereview.chromium.org/4749003/diff/16002/chrome/test/live_sync/two_c...
chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc:39: const
std::vector<unsigned char> IndexedFavicon(int i) {
On 2010/11/11 19:25:34, timsteele wrote:
> is this used anywhere?

This will be used in new automated tests that add different favicons on
different clients. Coming up in a future patch.

Powered by Google App Engine
This is Rietveld 408576698