[GCM] Adding registration ID request and tests to GCM Account Mapper
commitba729da9c8327a4efc18963abd365efe409a80b5
authorfgorski <fgorski@chromium.org>
Sat, 20 Sep 2014 20:55:55 +0000 (20 13:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 20 Sep 2014 20:56:11 +0000 (20 20:56 +0000)
tree5a15503d786d491e9b34a6a2bea8f10464788a75
parented3e65c71b7566004fc75da2799f1f9e7e4b299c
[GCM] Adding registration ID request and tests to GCM Account Mapper

Adding registration ID request and tests to GCM Account Mapper
* Adding code to get registration ID from GCM
* Making sure account tokens are only processed when reg ID is present
* Remembering only the last assigned set of account tokens
* Fixing tests that require registration ID
* Adding tests specific to registration ID setting

BUG=374969
R=zea@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#295890}
components/gcm_driver/gcm_account_mapper.cc
components/gcm_driver/gcm_account_mapper.h
components/gcm_driver/gcm_account_mapper_unittest.cc