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

Unified Diff: mojo/public/cpp/bindings/tests/iterator_test_util.h

Issue 1372233002: Fix |Array| and iterator_util.h's Iterator operator->() behavior (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 | « mojo/public/cpp/bindings/lib/iterator_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/iterator_test_util.h
diff --git a/mojo/public/cpp/bindings/tests/iterator_test_util.h b/mojo/public/cpp/bindings/tests/iterator_test_util.h
index a3669a05d2acdd3848b52c14cddf99835856c26d..ffe23bbb3ccaa4b27b960a77b2bd80e9b81a2826 100644
--- a/mojo/public/cpp/bindings/tests/iterator_test_util.h
+++ b/mojo/public/cpp/bindings/tests/iterator_test_util.h
@@ -84,7 +84,7 @@ void ExpectBidiIteratorConcept(Iterator begin,
EXPECT_EQ(iter3_mv, iter3_cp_mv);
// operator->.
- EXPECT_EQ(iter3_mv.operator->(), expected_values[1]);
+ EXPECT_EQ(*(iter3_mv.operator->()), expected_values[1]);
// Swap two iterators:
Iterator i1 = begin;
« no previous file with comments | « mojo/public/cpp/bindings/lib/iterator_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698