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

Issue 234113002: Use FakeServer-based invalidations for Sync tests (Closed)

Created:
6 years, 8 months ago by pval...(no longer on Chromium)
Modified:
6 years, 7 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use FakeServer-based invalidations for Sync tests This CL creates a new InvalidationService implementation, FakeServerInvalidationService, to remove FakeServer-based tests' dependency on the Python XMPP server. Another major change is that FakeServer's HandleCommand is now executed on the UI thread and locking has been removed from FakeServer itself. BUG=323265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267422

Patch Set 1 : #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -110 lines) Patch
A + chrome/browser/sync/test/integration/fake_server_invalidation_service.h View 1 2 3 4 2 chunks +20 lines, -32 lines 0 comments Download
A chrome/browser/sync/test/integration/fake_server_invalidation_service.cc View 1 2 3 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 10 chunks +48 lines, -15 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sync/test/fake_server/fake_server.h View 1 2 3 6 chunks +40 lines, -23 lines 0 comments Download
M sync/test/fake_server/fake_server.cc View 1 2 3 11 chunks +43 lines, -28 lines 0 comments Download
M sync/test/fake_server/fake_server_http_post_provider.h View 1 2 5 chunks +18 lines, -2 lines 0 comments Download
M sync/test/fake_server/fake_server_http_post_provider.cc View 1 2 3 5 chunks +41 lines, -8 lines 0 comments Download
M sync/test/fake_server/fake_server_network_resources.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
pval...(no longer on Chromium)
@rlarocque no rush on this CL. A couple points I'd especially like your feedback on: ...
6 years, 8 months ago (2014-04-22 17:26:08 UTC) #1
rlarocque
On 2014/04/22 17:26:08, pvalenzuela wrote: > @rlarocque no rush on this CL. > > A ...
6 years, 8 months ago (2014-04-22 18:22:11 UTC) #2
rlarocque
https://codereview.chromium.org/234113002/diff/220001/chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc File chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc (right): https://codereview.chromium.org/234113002/diff/220001/chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc#newcode1619 chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc:1619: // This test fails when run with FakeServer and ...
6 years, 8 months ago (2014-04-22 18:22:22 UTC) #3
pval...(no longer on Chromium)
(Sorry about syncing/rebasing before uploading the new patchset) Let's talk about a couple things tomorrow: ...
6 years, 8 months ago (2014-04-24 01:08:53 UTC) #4
rlarocque
https://codereview.chromium.org/234113002/diff/220001/sync/test/fake_server/fake_server.h File sync/test/fake_server/fake_server.h (right): https://codereview.chromium.org/234113002/diff/220001/sync/test/fake_server/fake_server.h#newcode53 sync/test/fake_server/fake_server.h:53: void AddObserver(Observer* observer); On 2014/04/24 01:08:53, pvalenzuela wrote: > ...
6 years, 8 months ago (2014-04-25 17:41:46 UTC) #5
pval...(no longer on Chromium)
Ok, I think this is ready to resume the review. I still can't figure out ...
6 years, 7 months ago (2014-04-29 00:06:07 UTC) #6
rlarocque
https://codereview.chromium.org/234113002/diff/220001/sync/test/fake_server/fake_server.h File sync/test/fake_server/fake_server.h (right): https://codereview.chromium.org/234113002/diff/220001/sync/test/fake_server/fake_server.h#newcode53 sync/test/fake_server/fake_server.h:53: void AddObserver(Observer* observer); On 2014/04/29 00:06:07, pvalenzuela wrote: > ...
6 years, 7 months ago (2014-04-29 00:13:02 UTC) #7
rlarocque
lgtm https://codereview.chromium.org/234113002/diff/300001/chrome/browser/sync/test/integration/fake_server_invalidation_service.h File chrome/browser/sync/test/integration/fake_server_invalidation_service.h (right): https://codereview.chromium.org/234113002/diff/300001/chrome/browser/sync/test/integration/fake_server_invalidation_service.h#newcode68 chrome/browser/sync/test/integration/fake_server_invalidation_service.h:68: nit: Remove blank newline.
6 years, 7 months ago (2014-04-29 00:29:20 UTC) #8
pval...(no longer on Chromium)
https://codereview.chromium.org/234113002/diff/300001/chrome/browser/sync/test/integration/fake_server_invalidation_service.h File chrome/browser/sync/test/integration/fake_server_invalidation_service.h (right): https://codereview.chromium.org/234113002/diff/300001/chrome/browser/sync/test/integration/fake_server_invalidation_service.h#newcode68 chrome/browser/sync/test/integration/fake_server_invalidation_service.h:68: On 2014/04/29 00:29:21, rlarocque wrote: > nit: Remove blank ...
6 years, 7 months ago (2014-04-30 17:03:58 UTC) #9
pval...(no longer on Chromium)
The CQ bit was checked by pvalenzuela@chromium.org
6 years, 7 months ago (2014-04-30 17:07:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pvalenzuela@chromium.org/234113002/320001
6 years, 7 months ago (2014-04-30 17:11:26 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 18:57:55 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 18:57:56 UTC) #13
pval...(no longer on Chromium)
The CQ bit was checked by pvalenzuela@chromium.org
6 years, 7 months ago (2014-05-01 00:46:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pvalenzuela@chromium.org/234113002/320001
6 years, 7 months ago (2014-05-01 00:47:15 UTC) #15
commit-bot: I haz the power
Change committed as 267422
6 years, 7 months ago (2014-05-01 04:21:45 UTC) #16
sadrul
6 years, 7 months ago (2014-05-01 04:47:20 UTC) #17
Message was sent while issue was closed.
On 2014/05/01 04:21:45, I haz the power (commit-bot) wrote:
> Change committed as 267422

Hi. This seems to break linux-clang build with the following compile error:

FAILED: /b/build/goma/gomacc
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
obj/sync/test/fake_server/run_sync_fake_server.fake_sync_server_http_handler.o.d
...  -o
obj/sync/test/fake_server/run_sync_fake_server.fake_sync_server_http_handler.o
../../sync/test/fake_server/fake_sync_server_http_handler.cc:51:61: error: too
many arguments to function call, expected 2, have 3
                                                            &response);
                                                            ^~~~~~~~~
../../sync/test/fake_server/fake_server.h:44:3: note: 'HandleCommand' declared
here
  void HandleCommand(const std::string& request,
  ^
1 error generated.
ninja: build stopped: subcommand failed.

Build link:
http://build.chromium.org/p/chromium.linux/builders/Linux%20Clang%20%28dbg%29...

Powered by Google App Engine
This is Rietveld 408576698