From 83ae91a9e2d1ed5dde71fe3bf86b0792ddb451af Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 11 Sep 2013 19:12:58 +0000 Subject: [PATCH] Linux: Fix compile error git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1436 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- tests/unittests/request_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unittests/request_unittest.cc b/tests/unittests/request_unittest.cc index 2faaef222..7df3c3d95 100644 --- a/tests/unittests/request_unittest.cc +++ b/tests/unittests/request_unittest.cc @@ -240,7 +240,7 @@ class TypeExpectations { TypeExpectations(bool browser_side) : browser_side_(browser_side) { // Build the map of relevant requests. - for (int i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) { + for (size_t i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) { if (g_type_expected[i].browser_side != browser_side_) continue; @@ -282,7 +282,7 @@ class TypeExpectations { // Test if all expectations have been met. bool IsDone(bool assert) { - for (int i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) { + for (size_t i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) { if (g_type_expected[i].browser_side != browser_side_) continue; @@ -307,7 +307,7 @@ class TypeExpectations { int GetExpectedIndex(const std::string& file, cef_transition_type_t transition_type, cef_resource_type_t resource_type) { - for (int i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) { + for (size_t i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) { if (g_type_expected[i].file == file && g_type_expected[i].browser_side == browser_side_ && g_type_expected[i].transition_type == transition_type &&