OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/bookmarks/browser/bookmark_index.h" | 5 #include "components/bookmarks/browser/bookmark_index.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
13 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
15 #include "components/bookmarks/browser/bookmark_match.h" | 17 #include "components/bookmarks/browser/bookmark_match.h" |
16 #include "components/bookmarks/browser/bookmark_model.h" | 18 #include "components/bookmarks/browser/bookmark_model.h" |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 // Select top two matches. | 554 // Select top two matches. |
553 model->GetBookmarksMatching(ASCIIToUTF16("google"), 2, &matches); | 555 model->GetBookmarksMatching(ASCIIToUTF16("google"), 2, &matches); |
554 | 556 |
555 ASSERT_EQ(2U, matches.size()); | 557 ASSERT_EQ(2U, matches.size()); |
556 EXPECT_EQ(data[0].url, matches[0].node->url()); | 558 EXPECT_EQ(data[0].url, matches[0].node->url()); |
557 EXPECT_EQ(data[3].url, matches[1].node->url()); | 559 EXPECT_EQ(data[3].url, matches[1].node->url()); |
558 } | 560 } |
559 | 561 |
560 } // namespace | 562 } // namespace |
561 } // namespace bookmarks | 563 } // namespace bookmarks |
OLD | NEW |