| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/autocomplete/bookmark_provider.h" | 5 #include "chrome/browser/autocomplete/bookmark_provider.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 if (j >= query_data[i].match_count) | 331 if (j >= query_data[i].match_count) |
| 332 continue; | 332 continue; |
| 333 EXPECT_LT(j, matches.size()) << " Missing match '" | 333 EXPECT_LT(j, matches.size()) << " Missing match '" |
| 334 << query_data[i].matches[j] << "' for query: '" | 334 << query_data[i].matches[j] << "' for query: '" |
| 335 << query_data[i].query << "'."; | 335 << query_data[i].query << "'."; |
| 336 if (j >= matches.size()) | 336 if (j >= matches.size()) |
| 337 continue; | 337 continue; |
| 338 EXPECT_EQ(query_data[i].matches[j], UTF16ToUTF8(matches[j].description)) | 338 EXPECT_EQ(query_data[i].matches[j], UTF16ToUTF8(matches[j].description)) |
| 339 << " Mismatch at [" << base::IntToString(j) << "] for query '" | 339 << " Mismatch at [" << base::IntToString(j) << "] for query '" |
| 340 << query_data[i].query << "'."; | 340 << query_data[i].query << "'."; |
| 341 EXPECT_FALSE(matches[j].allowed_to_be_default_match); |
| 341 } | 342 } |
| 342 } | 343 } |
| 343 } | 344 } |
| OLD | NEW |