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

Unified Diff: chrome/browser/chromeos/gdata/gdata_test_util.h

Issue 10911306: Split Drive test utilities to drive_test_util and gdata_test_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_test_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_test_util.h b/chrome/browser/chromeos/gdata/gdata_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..4698e3247420291a46e23237f2126a12c3f77285
--- /dev/null
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.h
@@ -0,0 +1,41 @@
+#ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
+#define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
+
+#include "chrome/browser/chromeos/gdata/gdata_test_util.h"
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+
+class FilePath;
+
+namespace base {
+class Value;
+}
+
+namespace gdata {
+
kochi 2012/09/14 11:05:15 Don't need this blank line.
nhiroki 2012/09/14 11:12:05 Done.
+namespace test_util {
+
+// Runs a task posted to the blocking pool, including subsequent tasks posted
+// to the UI message loop and the blocking pool.
+//
+// A task is often posted to the blocking pool with PostTaskAndReply(). In
+// that case, a task is posted back to the UI message loop, which can again
+// post a task to the blocking pool. This function processes these tasks
+// repeatedly.
+void RunBlockingPoolTask();
+
+// Returns the absolute path for a test file stored under
+// chrome/test/data/chromeos.
+FilePath GetTestFilePath(const std::string& relative_path);
+
+// Loads a test JSON file as a base::Value, from a test file stored under
+// chrome/test/data/chromeos.
+scoped_ptr<base::Value> LoadJSONFile(const std::string& relative_path);
+
+} // namespace test_util
+
kochi 2012/09/14 11:05:15 Ditto
nhiroki 2012/09/14 11:12:05 Done.
+} // namespace gdata
+
+#endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations_unittest.cc ('k') | chrome/browser/chromeos/gdata/gdata_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698