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

Side by Side Diff: chrome/browser/extensions/app_notification_manager_sync_unittest.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "chrome/browser/extensions/app_notification.h" 9 #include "chrome/browser/extensions/app_notification.h"
10 #include "chrome/browser/extensions/app_notification_manager.h" 10 #include "chrome/browser/extensions/app_notification_manager.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 change.sync_data())); 222 change.sync_data()));
223 ASSERT_TRUE(notif.Equals(*notif2)); 223 ASSERT_TRUE(notif.Equals(*notif2));
224 } 224 }
225 225
226 protected: 226 protected:
227 MessageLoop ui_loop_; 227 MessageLoop ui_loop_;
228 content::TestBrowserThread ui_thread_; 228 content::TestBrowserThread ui_thread_;
229 content::TestBrowserThread file_thread_; 229 content::TestBrowserThread file_thread_;
230 230
231 // We keep two TemplateURLServices to test syncing between them. 231 // We keep two TemplateURLServices to test syncing between them.
232 ScopedTempDir temp_dir_; 232 base::ScopedTempDir temp_dir_;
233 scoped_ptr<TestingProfile> profile_; 233 scoped_ptr<TestingProfile> profile_;
234 scoped_refptr<AppNotificationManager> model_; 234 scoped_refptr<AppNotificationManager> model_;
235 235
236 scoped_ptr<TestChangeProcessor> sync_processor_; 236 scoped_ptr<TestChangeProcessor> sync_processor_;
237 scoped_ptr<SyncChangeProcessorDelegate> sync_processor_delegate_; 237 scoped_ptr<SyncChangeProcessorDelegate> sync_processor_delegate_;
238 238
239 DISALLOW_COPY_AND_ASSIGN(AppNotificationManagerSyncTest); 239 DISALLOW_COPY_AND_ASSIGN(AppNotificationManagerSyncTest);
240 }; 240 };
241 241
242 // Create an AppNotification, convert it to SyncData and convert it back. 242 // Create an AppNotification, convert it to SyncData and convert it back.
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 EXPECT_TRUE(processor()->ContainsGuid(n1->guid())); 750 EXPECT_TRUE(processor()->ContainsGuid(n1->guid()));
751 syncer::SyncChange c1 = processor()->GetChangeByGuid(n1->guid()); 751 syncer::SyncChange c1 = processor()->GetChangeByGuid(n1->guid());
752 AssertSyncChange(c1, syncer::SyncChange::ACTION_DELETE, *n1); 752 AssertSyncChange(c1, syncer::SyncChange::ACTION_DELETE, *n1);
753 syncer::SyncChange c2 = processor()->GetChangeByGuid(n2->guid()); 753 syncer::SyncChange c2 = processor()->GetChangeByGuid(n2->guid());
754 AssertSyncChange(c2, syncer::SyncChange::ACTION_DELETE, *n2); 754 AssertSyncChange(c2, syncer::SyncChange::ACTION_DELETE, *n2);
755 syncer::SyncChange c3 = processor()->GetChangeByGuid(n3->guid()); 755 syncer::SyncChange c3 = processor()->GetChangeByGuid(n3->guid());
756 AssertSyncChange(c3, syncer::SyncChange::ACTION_DELETE, *n3); 756 AssertSyncChange(c3, syncer::SyncChange::ACTION_DELETE, *n3);
757 } 757 }
758 758
759 } // namespace extensions 759 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698