| Index: google_apis/gcm/engine/gcm_store_impl_unittest.cc
|
| diff --git a/google_apis/gcm/engine/gcm_store_impl_unittest.cc b/google_apis/gcm/engine/gcm_store_impl_unittest.cc
|
| index 4beb0ae2501ccce6c5208af63a1ce840516daa12..a7c3d388434eee874846b38b3f3abdcc9ef7c3ac 100644
|
| --- a/google_apis/gcm/engine/gcm_store_impl_unittest.cc
|
| +++ b/google_apis/gcm/engine/gcm_store_impl_unittest.cc
|
| @@ -57,11 +57,13 @@ class GCMStoreImplTest : public testing::Test {
|
| base::MessageLoop message_loop_;
|
| base::ScopedTempDir temp_directory_;
|
| bool expected_success_;
|
| + uint64 next_persistent_id_;
|
| scoped_ptr<base::RunLoop> run_loop_;
|
| };
|
|
|
| GCMStoreImplTest::GCMStoreImplTest()
|
| - : expected_success_(true) {
|
| + : expected_success_(true),
|
| + next_persistent_id_(base::Time::Now().ToInternalValue()) {
|
| EXPECT_TRUE(temp_directory_.CreateUniqueTempDir());
|
| run_loop_.reset(new base::RunLoop());
|
| }
|
| @@ -76,7 +78,7 @@ scoped_ptr<GCMStore> GCMStoreImplTest::BuildGCMStore() {
|
| }
|
|
|
| std::string GCMStoreImplTest::GetNextPersistentId() {
|
| - return base::Uint64ToString(base::Time::Now().ToInternalValue());
|
| + return base::Uint64ToString(next_persistent_id_++);
|
| }
|
|
|
| void GCMStoreImplTest::PumpLoop() { message_loop_.RunUntilIdle(); }
|
|
|