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

Issue 7562020: Sessions sync integration tests: check all windows and tabs when searching for a URL. (Closed)

Created:
9 years, 4 months ago by braffert
Modified:
9 years, 4 months ago
Reviewers:
anna, Nicolas Zea
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Sessions sync integration tests: check all windows and tabs when searching for a URL. This patch modifies LiveSessionsSyncTest::ModelAssociatorHasTabWithUrl so that it is no longer hard-coded to check only windows[0]->tabs[0]. With this change, it iterates through all windows and all tabs, so it will return true if any tab in the given profile has the specified URL. This change has no immediate effect, but it is intended to be one step towards eventually adding tab/session sync performance tests. I also added LiveSessionsSyncTest::GetLocalSession to eliminate a little bit of repeated code. BUG= TEST=sync_integration_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95357

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review fixes #

Patch Set 3 : typos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -23 lines) Patch
M chrome/test/live_sync/live_sessions_sync_test.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_sessions_sync_test.cc View 1 2 3 chunks +40 lines, -23 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
braffert
9 years, 4 months ago (2011-08-03 23:51:51 UTC) #1
Nicolas Zea
http://codereview.chromium.org/7562020/diff/1/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc (right): http://codereview.chromium.org/7562020/diff/1/chrome/test/live_sync/live_sessions_sync_test.cc#newcode43 chrome/test/live_sync/live_sessions_sync_test.cc:43: if (!GetProfile(index)->GetProfileSyncService()-> return GetProfile(index)->... http://codereview.chromium.org/7562020/diff/1/chrome/test/live_sync/live_sessions_sync_test.cc#newcode70 chrome/test/live_sync/live_sessions_sync_test.cc:70: return false; change ...
9 years, 4 months ago (2011-08-04 00:28:49 UTC) #2
braffert
http://codereview.chromium.org/7562020/diff/1/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc (right): http://codereview.chromium.org/7562020/diff/1/chrome/test/live_sync/live_sessions_sync_test.cc#newcode43 chrome/test/live_sync/live_sessions_sync_test.cc:43: if (!GetProfile(index)->GetProfileSyncService()-> On 2011/08/04 00:28:49, nzea wrote: > return ...
9 years, 4 months ago (2011-08-04 00:38:36 UTC) #3
Nicolas Zea
9 years, 4 months ago (2011-08-04 00:43:16 UTC) #4
LGTM.

Powered by Google App Engine
This is Rietveld 408576698