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

Unified Diff: remoting/host/security_key/security_key_message_writer_impl_unittest.cc

Issue 2230193002: remoting: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: remoting/host/security_key/security_key_message_writer_impl_unittest.cc
diff --git a/remoting/host/security_key/security_key_message_writer_impl_unittest.cc b/remoting/host/security_key/security_key_message_writer_impl_unittest.cc
index 7545ab61b3688493d9370d5cb98415078711278c..ead0f8bddda0f13cb3f8e026c5307927959c2c2a 100644
--- a/remoting/host/security_key/security_key_message_writer_impl_unittest.cc
+++ b/remoting/host/security_key/security_key_message_writer_impl_unittest.cc
@@ -66,16 +66,16 @@ SecurityKeyMessageWriterImplTest::~SecurityKeyMessageWriterImplTest() {}
std::string SecurityKeyMessageWriterImplTest::ReadMessage(
int payload_length_bytes) {
std::string message_header(SecurityKeyMessage::kHeaderSizeBytes, '\0');
- read_file_.ReadAtCurrentPos(string_as_array(&message_header),
+ read_file_.ReadAtCurrentPos(base::string_as_array(&message_header),
SecurityKeyMessage::kHeaderSizeBytes);
std::string message_type(SecurityKeyMessage::kMessageTypeSizeBytes, '\0');
- read_file_.ReadAtCurrentPos(string_as_array(&message_type),
+ read_file_.ReadAtCurrentPos(base::string_as_array(&message_type),
SecurityKeyMessage::kMessageTypeSizeBytes);
std::string message_data(payload_length_bytes, '\0');
if (payload_length_bytes) {
- read_file_.ReadAtCurrentPos(string_as_array(&message_data),
+ read_file_.ReadAtCurrentPos(base::string_as_array(&message_data),
payload_length_bytes);
}
@@ -173,8 +173,8 @@ TEST_F(SecurityKeyMessageWriterImplTest, WriteMultipleMessages) {
// Retrieve and verify the message type.
std::string message_type(length, '\0');
- int bytes_read =
- read_file_.ReadAtCurrentPos(string_as_array(&message_type), length);
+ int bytes_read = read_file_.ReadAtCurrentPos(
+ base::string_as_array(&message_type), length);
ASSERT_EQ(length, bytes_read);
SecurityKeyMessageType type =

Powered by Google App Engine
This is Rietveld 408576698