| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
| 7 |
| 8 #include "chrome/browser/chromeos/gdata/gdata_test_util.h" |
| 9 |
| 10 #include <string> |
| 11 |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 |
| 14 class FilePath; |
| 15 |
| 16 namespace base { |
| 17 class Value; |
| 18 } |
| 19 |
| 20 namespace gdata { |
| 21 namespace test_util { |
| 22 |
| 23 // Runs a task posted to the blocking pool, including subsequent tasks posted |
| 24 // to the UI message loop and the blocking pool. |
| 25 // |
| 26 // A task is often posted to the blocking pool with PostTaskAndReply(). In |
| 27 // that case, a task is posted back to the UI message loop, which can again |
| 28 // post a task to the blocking pool. This function processes these tasks |
| 29 // repeatedly. |
| 30 void RunBlockingPoolTask(); |
| 31 |
| 32 // Returns the absolute path for a test file stored under |
| 33 // chrome/test/data/chromeos. |
| 34 FilePath GetTestFilePath(const std::string& relative_path); |
| 35 |
| 36 // Loads a test JSON file as a base::Value, from a test file stored under |
| 37 // chrome/test/data/chromeos. |
| 38 scoped_ptr<base::Value> LoadJSONFile(const std::string& relative_path); |
| 39 |
| 40 } // namespace test_util |
| 41 } // namespace gdata |
| 42 |
| 43 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
| OLD | NEW |