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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc

Issue 10822030: Move ui_test_utils::RunMessageLoop to test_utils so that it can be reused by content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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_documents_service_browsertest.cc
===================================================================
--- chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc (revision 148497)
+++ chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc (working copy)
@@ -80,7 +80,7 @@
gdata_test_server_.GetURL("files/chromeos/gdata/testfile.txt"),
base::Bind(&TestDownloadCallback, &result, &contents),
gdata::GetDownloadDataCallback());
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
EXPECT_EQ(gdata::HTTP_SUCCESS, result);
FilePath expected_filepath = gdata_test_server_.document_root().Append(
@@ -99,7 +99,7 @@
gdata_test_server_.GetURL("files/chromeos/gdata/no-such-file.txt"),
base::Bind(&TestDownloadCallback, &result, &dummy_contents),
gdata::GetDownloadDataCallback());
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
EXPECT_EQ(gdata::HTTP_NOT_FOUND, result);
// Do not verify the not found message.
@@ -114,7 +114,7 @@
std::string(), // search string
std::string(), // directory resource ID
base::Bind(&TestGetDocumentsCallback, &result, &result_data));
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
EXPECT_EQ(gdata::HTTP_SUCCESS, result);
ASSERT_TRUE(result_data);
@@ -139,7 +139,7 @@
std::string(), // search string
std::string(), // directory resource ID
base::Bind(&TestGetDocumentsCallback, &result, &result_data));
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
EXPECT_EQ(gdata::GDATA_PARSE_ERROR, result);
EXPECT_FALSE(result_data);

Powered by Google App Engine
This is Rietveld 408576698