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

Unified Diff: mojo/services/files/public/c/tests/test_utils.cc

Issue 1150563003: Rename InterfacePtr's WaitForIncomingMethodCall() -> WaitForIncomingResponse(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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: mojo/services/files/public/c/tests/test_utils.cc
diff --git a/mojo/services/files/public/c/tests/test_utils.cc b/mojo/services/files/public/c/tests/test_utils.cc
index 5ef9e9aa96d0a5f279e5211fa29adc1e9b80bb2a..1cf4ecfb0d884cdf4057e69e86a010ee3fdcf8b0 100644
--- a/mojo/services/files/public/c/tests/test_utils.cc
+++ b/mojo/services/files/public/c/tests/test_utils.cc
@@ -22,7 +22,7 @@ void MakeDirAt(mojo::files::DirectoryPtr* root, const char* path) {
mojo::files::kOpenFlagRead | mojo::files::kOpenFlagWrite |
mojo::files::kOpenFlagCreate,
Capture(&error));
- MOJO_CHECK(dir.WaitForIncomingMethodCall());
+ MOJO_CHECK(dir.WaitForIncomingResponse());
MOJO_CHECK(error == mojo::files::ERROR_OK);
}
@@ -36,7 +36,7 @@ mojo::files::FilePtr OpenFileAt(mojo::files::DirectoryPtr* root,
mojo::files::FilePtr file;
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
dir->OpenFile(path, mojo::GetProxy(&file), open_flags, Capture(&error));
- MOJO_CHECK(dir.WaitForIncomingMethodCall());
+ MOJO_CHECK(dir.WaitForIncomingResponse());
if (error != mojo::files::ERROR_OK)
return nullptr;
@@ -62,7 +62,7 @@ void CreateTestFileAt(mojo::files::DirectoryPtr* root,
file->Write(mojo::Array<uint8_t>::From(bytes_to_write), 0,
mojo::files::WHENCE_FROM_CURRENT,
Capture(&error, &num_bytes_written));
- MOJO_CHECK(file.WaitForIncomingMethodCall());
+ MOJO_CHECK(file.WaitForIncomingResponse());
MOJO_CHECK(error == mojo::files::ERROR_OK);
MOJO_CHECK(num_bytes_written == bytes_to_write.size());
}
@@ -77,7 +77,7 @@ int64_t GetFileSize(mojo::files::DirectoryPtr* root, const char* path) {
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
int64_t position = -1;
file->Seek(0, mojo::files::WHENCE_FROM_END, Capture(&error, &position));
- MOJO_CHECK(file.WaitForIncomingMethodCall());
+ MOJO_CHECK(file.WaitForIncomingResponse());
MOJO_CHECK(error == mojo::files::ERROR_OK);
MOJO_CHECK(position >= 0);
return position;
@@ -92,7 +92,7 @@ std::string GetFileContents(mojo::files::DirectoryPtr* root, const char* path) {
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
file->Read(1024 * 1024, 0, mojo::files::WHENCE_FROM_START,
Capture(&error, &bytes_read));
- MOJO_CHECK(file.WaitForIncomingMethodCall());
+ MOJO_CHECK(file.WaitForIncomingResponse());
if (!bytes_read.size())
return std::string();
return std::string(reinterpret_cast<const char*>(&bytes_read[0]),
« no previous file with comments | « mojo/services/files/public/c/tests/mojio_impl_test_base.cc ('k') | services/files/directory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698