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

Unified Diff: base/file_util_proxy_unittest.cc

Issue 11794032: base: Update the calls from MessageLoop::Quit() to QuitWhenIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « base/cancelable_callback.h ('k') | base/message_loop_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_proxy_unittest.cc
diff --git a/base/file_util_proxy_unittest.cc b/base/file_util_proxy_unittest.cc
index ed5403798b3c16117d71140018d872b16f54a792..db215f0ecf157b3ad03ebc490bafd22baf3c62bb 100644
--- a/base/file_util_proxy_unittest.cc
+++ b/base/file_util_proxy_unittest.cc
@@ -40,7 +40,7 @@ class FileUtilProxyTest : public testing::Test {
void DidFinish(PlatformFileError error) {
error_ = error;
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
void DidCreateOrOpen(PlatformFileError error,
@@ -49,7 +49,7 @@ class FileUtilProxyTest : public testing::Test {
error_ = error;
file_ = file.ReleaseValue();
created_ = created;
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
void DidCreateTemporary(PlatformFileError error,
@@ -58,14 +58,14 @@ class FileUtilProxyTest : public testing::Test {
error_ = error;
file_ = file.ReleaseValue();
path_ = path;
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
void DidGetFileInfo(PlatformFileError error,
const PlatformFileInfo& file_info) {
error_ = error;
file_info_ = file_info;
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
void DidRead(PlatformFileError error,
@@ -74,14 +74,14 @@ class FileUtilProxyTest : public testing::Test {
error_ = error;
buffer_.resize(bytes_read);
memcpy(&buffer_[0], data, bytes_read);
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
void DidWrite(PlatformFileError error,
int bytes_written) {
error_ = error;
bytes_written_ = bytes_written;
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
protected:
« no previous file with comments | « base/cancelable_callback.h ('k') | base/message_loop_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698