Have FakeGCMProfileService return different registration IDs each time
commit29022c572fbd857e94f9e1d1eb5c19ed285863a2
authorjohnme <johnme@chromium.org>
Thu, 11 Dec 2014 16:26:30 +0000 (11 08:26 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 16:26:46 +0000 (11 16:26 +0000)
tree352c857ef119e6ae9741d6c4e769ac464271adb7
parent0808f4e40e13fb675c15f4a636eec3f0cc3a9abd
Have FakeGCMProfileService return different registration IDs each time

This will be necessary for testing that the Push API code properly
persists push registrations to disk.

The slightly odd 1000 * (sender_ids.size() - 1) means that existing tests that only register once and pass in a single sender ID are unchanged.

BUG=429212

Review URL: https://codereview.chromium.org/785983002

Cr-Commit-Position: refs/heads/master@{#307906}
chrome/browser/services/gcm/fake_gcm_profile_service.cc
chrome/browser/services/gcm/fake_gcm_profile_service.h
chrome/browser/services/gcm/push_messaging_browsertest.cc
chrome/test/data/extensions/api_test/gcm/functions/register_validation/register_validation.js