Index: chrome/browser/google_apis/test_util.cc |
diff --git a/chrome/browser/google_apis/test_util.cc b/chrome/browser/google_apis/test_util.cc |
index 934d48ae9296083b6fc1c59df1d9842d133da023..009c0269095df51a72ef5171676d93818a5a94f1 100644 |
--- a/chrome/browser/google_apis/test_util.cc |
+++ b/chrome/browser/google_apis/test_util.cc |
@@ -9,11 +9,13 @@ |
#include "base/message_loop.h" |
#include "base/path_service.h" |
#include "base/string_util.h" |
+#include "base/stringprintf.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "chrome/browser/google_apis/gdata_wapi_parser.h" |
#include "chrome/browser/google_apis/test_server/http_server.h" |
#include "chrome/common/chrome_paths.h" |
#include "content/public/browser/browser_thread.h" |
+#include "googleurl/src/gurl.h" |
namespace google_apis { |
namespace test_util { |
@@ -47,6 +49,10 @@ FilePath GetTestFilePath(const std::string& relative_path) { |
return path; |
} |
+GURL GetBaseUrlForTesting(int port) { |
+ return GURL(base::StringPrintf("http://127.0.0.1:%d/", port)); |
+} |
+ |
void RunBlockingPoolTask() { |
while (true) { |
content::BrowserThread::GetBlockingPool()->FlushForTesting(); |