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

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

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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) 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 110
111 ACTION_P3(MockSyncOperationCallback, status, url, operation_type) { 111 ACTION_P3(MockSyncOperationCallback, status, url, operation_type) {
112 base::MessageLoopProxy::current()->PostTask( 112 base::MessageLoopProxy::current()->PostTask(
113 FROM_HERE, base::Bind(arg1, status, url, operation_type)); 113 FROM_HERE, base::Bind(arg1, status, url, operation_type));
114 } 114 }
115 115
116 class SyncFileSystemServiceTest : public testing::Test { 116 class SyncFileSystemServiceTest : public testing::Test {
117 protected: 117 protected:
118 SyncFileSystemServiceTest() {} 118 SyncFileSystemServiceTest() {}
119 ~SyncFileSystemServiceTest() {} 119 virtual ~SyncFileSystemServiceTest() {}
120 120
121 virtual void SetUp() OVERRIDE { 121 virtual void SetUp() OVERRIDE {
122 thread_helper_.SetUp(); 122 thread_helper_.SetUp();
123 123
124 file_system_.reset(new fileapi::CannedSyncableFileSystem( 124 file_system_.reset(new fileapi::CannedSyncableFileSystem(
125 GURL(kOrigin), kServiceName, 125 GURL(kOrigin), kServiceName,
126 thread_helper_.io_task_runner(), 126 thread_helper_.io_task_runner(),
127 thread_helper_.file_task_runner())); 127 thread_helper_.file_task_runner()));
128 128
129 local_service_ = new LocalFileSyncService(&profile_); 129 local_service_ = new LocalFileSyncService(&profile_);
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 base::Bind(&AssignValueAndQuit<fileapi::SyncFileStatus>, 632 base::Bind(&AssignValueAndQuit<fileapi::SyncFileStatus>,
633 &run_loop, &status, &sync_file_status)); 633 &run_loop, &status, &sync_file_status));
634 run_loop.Run(); 634 run_loop.Run();
635 635
636 EXPECT_EQ(fileapi::SYNC_STATUS_OK, status); 636 EXPECT_EQ(fileapi::SYNC_STATUS_OK, status);
637 EXPECT_EQ(fileapi::SYNC_FILE_STATUS_CONFLICTING, sync_file_status); 637 EXPECT_EQ(fileapi::SYNC_FILE_STATUS_CONFLICTING, sync_file_status);
638 } 638 }
639 } 639 }
640 640
641 } // namespace sync_file_system 641 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698