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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_test_util.h

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« 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