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 af5fc3addaa0fcfb0a3a795bf3776c8fcff491e3..a13e8fa947373496d6d35a51a3c98b7a969bc8d1 100644 |
--- a/google_apis/gcm/engine/gcm_store_impl_unittest.cc |
+++ b/google_apis/gcm/engine/gcm_store_impl_unittest.cc |
@@ -16,6 +16,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "google_apis/gcm/base/mcs_message.h" |
#include "google_apis/gcm/base/mcs_util.h" |
+#include "google_apis/gcm/engine/gcm_internals_builder.h" |
#include "google_apis/gcm/protocol/mcs.pb.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -71,10 +72,10 @@ GCMStoreImplTest::GCMStoreImplTest() |
GCMStoreImplTest::~GCMStoreImplTest() {} |
scoped_ptr<GCMStore> GCMStoreImplTest::BuildGCMStore() { |
- return scoped_ptr<GCMStore>(new GCMStoreImpl( |
- true, |
- temp_directory_.path(), |
- message_loop_.message_loop_proxy())); |
+ GCMInternalsBuilder builder; |
+ builder.SetUpForTesting(); |
+ return builder.BuildGCMStore(temp_directory_.path(), |
+ message_loop_.message_loop_proxy()).Pass(); |
jianli
2014/04/09 23:36:58
No need to call Pass.
|
} |
std::string GCMStoreImplTest::GetNextPersistentId() { |