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

Unified Diff: ppapi/tests/test_post_message.cc

Issue 915403003: Enable size_t to int truncation warnings in PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ppapi_unittests win x64 Created 5 years, 10 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 | « ppapi/tests/test_network_monitor.cc ('k') | ppapi/tests/test_tcp_server_socket_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_post_message.cc
diff --git a/ppapi/tests/test_post_message.cc b/ppapi/tests/test_post_message.cc
index 8e7be05635d5eeae65b3f842636645c62684115c..da560cfff5d65c12187a2ca2264ab54598e929fd 100644
--- a/ppapi/tests/test_post_message.cc
+++ b/ppapi/tests/test_post_message.cc
@@ -294,7 +294,7 @@ int TestPostMessage::WaitForMessages() {
// Now that the FINISHED_WAITING_MESSAGE has been echoed back to us, we know
// that all pending messages have been slurped up. Return the number we
// received (which may be zero).
- return message_data_.size() - message_size_before;
+ return static_cast<int>(message_data_.size() - message_size_before);
}
std::string TestPostMessage::CheckMessageProperties(
@@ -594,7 +594,7 @@ std::string TestPostMessage::TestSendingResource() {
std::string file_path("/");
file_path += kTestFilename;
- int content_length = strlen(kTestString);
+ int content_length = static_cast<int>(strlen(kTestString));
// Create a file in the HTML5 temporary file system, in the Pepper plugin.
TestCompletionCallback callback(instance_->pp_instance(), callback_type());
« no previous file with comments | « ppapi/tests/test_network_monitor.cc ('k') | ppapi/tests/test_tcp_server_socket_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698