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

Side by Side Diff: chrome/browser/sync_file_system/drive_file_sync_service_sync_unittest.cc

Issue 16703018: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/sync_file_system/drive_file_sync_service.h" 5 #include "chrome/browser/sync_file_system/drive_file_sync_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 } // namespace 45 } // namespace
46 46
47 class DriveFileSyncServiceSyncTest : public testing::Test { 47 class DriveFileSyncServiceSyncTest : public testing::Test {
48 public: 48 public:
49 DriveFileSyncServiceSyncTest() 49 DriveFileSyncServiceSyncTest()
50 : ui_thread_(content::BrowserThread::UI, &message_loop_), 50 : ui_thread_(content::BrowserThread::UI, &message_loop_),
51 file_thread_(content::BrowserThread::FILE, &message_loop_), 51 file_thread_(content::BrowserThread::FILE, &message_loop_),
52 fake_api_util_(NULL), 52 fake_api_util_(NULL),
53 fake_remote_processor_(NULL),
54 metadata_store_(NULL), 53 metadata_store_(NULL),
55 resource_count_(0) {} 54 resource_count_(0) {}
56 55
57 virtual ~DriveFileSyncServiceSyncTest() { 56 virtual ~DriveFileSyncServiceSyncTest() {
58 } 57 }
59 58
60 virtual void SetUp() OVERRIDE { 59 virtual void SetUp() OVERRIDE {
61 SetEnableSyncFSDirectoryOperation(true); 60 SetEnableSyncFSDirectoryOperation(true);
62 RegisterSyncableFileSystem(); 61 RegisterSyncableFileSystem();
63 } 62 }
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) { 433 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) {
435 std::string kDir = "dir title"; 434 std::string kDir = "dir title";
436 SyncEvent sync_event[] = { 435 SyncEvent sync_event[] = {
437 CreateRemoteDirectoryAddEvent(kDir), 436 CreateRemoteDirectoryAddEvent(kDir),
438 CreateRemoteFileDeleteEvent(kDir), 437 CreateRemoteFileDeleteEvent(kDir),
439 }; 438 };
440 RunTest(CreateTestCase(sync_event)); 439 RunTest(CreateTestCase(sync_event));
441 } 440 }
442 441
443 } // namespace sync_file_system 442 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698