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

Unified Diff: remoting/protocol/mouse_input_filter_unittest.cc

Issue 660703003: Convert ARRAYSIZE_UNSAFE -> arraysize in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « remoting/protocol/jingle_messages_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/mouse_input_filter_unittest.cc
diff --git a/remoting/protocol/mouse_input_filter_unittest.cc b/remoting/protocol/mouse_input_filter_unittest.cc
index 6c9893027696d6e5f2448fe5fc9aae9db2a3f78a..6cdcd247d8a73f3497f161e6f2649b1f8b4b4870 100644
--- a/remoting/protocol/mouse_input_filter_unittest.cc
+++ b/remoting/protocol/mouse_input_filter_unittest.cc
@@ -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));
}
« no previous file with comments | « remoting/protocol/jingle_messages_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698