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

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

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 "chrome/browser/sync_file_system/sync_file_system_test_util.h" 5 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "content/public/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "webkit/fileapi/syncable/sync_status_code.h" 13 #include "webkit/browser/fileapi/syncable/sync_status_code.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 using content::TestBrowserThread; 16 using content::TestBrowserThread;
17 17
18 namespace sync_file_system { 18 namespace sync_file_system {
19 19
20 template <typename R> 20 template <typename R>
21 void AssignAndQuit(base::RunLoop* run_loop, R* result_out, R result) { 21 void AssignAndQuit(base::RunLoop* run_loop, R* result_out, R result) {
22 DCHECK(result_out); 22 DCHECK(result_out);
23 DCHECK(run_loop); 23 DCHECK(run_loop);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 base::RunLoop run_loop; 69 base::RunLoop run_loop;
70 file_task_runner_->PostTaskAndReply( 70 file_task_runner_->PostTaskAndReply(
71 FROM_HERE, base::Bind(&base::DoNothing), run_loop.QuitClosure()); 71 FROM_HERE, base::Bind(&base::DoNothing), run_loop.QuitClosure());
72 run_loop.Run(); 72 run_loop.Run();
73 73
74 io_thread_->Stop(); 74 io_thread_->Stop();
75 file_thread_->Stop(); 75 file_thread_->Stop();
76 } 76 }
77 77
78 } // namespace sync_file_system 78 } // namespace sync_file_system
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service_unittest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698