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