Commit 7d5089a8 authored by viettrungluu's avatar viettrungluu Committed by Commit bot

Convert ARRAYSIZE_UNSAFE -> arraysize in remoting/.

R=sergeyu@chromium.org
BUG=423134

Review URL: https://codereview.chromium.org/660703003

Cr-Commit-Position: refs/heads/master@{#299930}
parent 063a31d2
......@@ -33,7 +33,7 @@ TEST(GetKeySymsForUnicode, Map) {
{ 0x4444, { 0x01004444, 0 } },
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) {
for (size_t i = 0; i < arraysize(kTests); ++i) {
std::vector<uint32_t> keysyms;
GetKeySymsForUnicode(kTests[i].code_point, &keysyms);
......
......@@ -314,7 +314,7 @@ TEST(JingleMessageReplyTest, ToXml) {
"<unexpected-request/></error></iq>" },
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
for (size_t i = 0; i < arraysize(tests); ++i) {
JingleMessageReply reply_msg;
if (tests[i].error_text.empty()) {
reply_msg = JingleMessageReply(tests[i].error);
......
......@@ -35,13 +35,11 @@ static void InjectTestSequence(InputStub* input_stub) {
static const Point input_sequence[] = {
{-5, 10}, {0, 10}, {-1, 10}, {15, 40}, {15, 45}, {15, 39}, {15, 25}
};
// arraysize() cannot be used here, becase Point is declared inside of a
// function.
for (unsigned int i = 0; i < ARRAYSIZE_UNSAFE(input_sequence); ++i) {
for (unsigned int i = 0; i < arraysize(input_sequence); ++i) {
const Point& point = input_sequence[i];
input_stub->InjectMouseEvent(MouseMoveEvent(point.x, point.y));
}
for (unsigned int i = 0; i < ARRAYSIZE_UNSAFE(input_sequence); ++i) {
for (unsigned int i = 0; i < arraysize(input_sequence); ++i) {
const Point& point = input_sequence[i];
input_stub->InjectMouseEvent(MouseMoveEvent(point.y, point.x));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment