| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_TEST_UTIL_H_ |
| #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_TEST_UTIL_H_ |
| |
| #include "base/callback_forward.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| |
| namespace base { |
| class RunLoop; |
| class SingleThreadTaskRunner; |
| } |
| |
| namespace sync_file_system { |
| |
| template <typename R> |
| void AssignAndQuit(base::RunLoop* run_loop, R* result_out, R result); |
| |
| template <typename R> base::Callback<void(R)> |
| AssignAndQuitCallback(base::RunLoop* run_loop, R* result); |
| |
| } // namespace sync_file_system |
| |
| #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_TEST_UTIL_H_ |