DescriptionFix test case table in HistoryURLProviderTest for C++11
C++11 narrowing rules do not accept converting signed literals (-1) to
unsigned types (size_t), so the table for SuggestExactInput test breaks
compilation when using G++ 4.7.2.
This patch uses a localized version of std::string::npos instead of the
literal -1.
BUG=237284
TEST=unit_tests --gtest_filter="*SuggestExactInput"
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206854
Patch Set 1 #
Total comments: 3
Patch Set 2 : Keep size_t and use std::string::npos #Messages
Total messages: 8 (0 generated)
|