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

Unified Diff: google_apis/gcm/engine/user_list_unittest.cc

Issue 147193003: [GCM] Fix memory leaks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/gcm/engine/mcs_client_unittest.cc ('k') | google_apis/gcm/gcm_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/user_list_unittest.cc
diff --git a/google_apis/gcm/engine/user_list_unittest.cc b/google_apis/gcm/engine/user_list_unittest.cc
index e07f68dea878034160109569ea34a5fca5d03583..476f31740a38d65cd88d20776cfedecc86ddcc08 100644
--- a/google_apis/gcm/engine/user_list_unittest.cc
+++ b/google_apis/gcm/engine/user_list_unittest.cc
@@ -72,7 +72,7 @@ class UserListTest : public testing::Test {
void UpdateCallback(bool success);
- void Initialize(UserList* user_list, const GCMStore::LoadResult& result);
+ void Initialize(UserList* user_list, scoped_ptr<GCMStore::LoadResult> result);
void ResetLoop();
@@ -116,9 +116,9 @@ scoped_ptr<UserList> UserListTest::BuildUserList() {
}
void UserListTest::Initialize(UserList* user_list,
- const GCMStore::LoadResult& result) {
- ASSERT_TRUE(result.success);
- user_list->Initialize(result.serial_number_mappings);
+ scoped_ptr<GCMStore::LoadResult> result) {
+ ASSERT_TRUE(result->success);
+ user_list->Initialize(result->serial_number_mappings);
ResetLoop();
}
« no previous file with comments | « google_apis/gcm/engine/mcs_client_unittest.cc ('k') | google_apis/gcm/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698