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

Side by Side Diff: components/bookmarks/browser/bookmark_index_unittest.cc

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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 unified diff | Download patch
OLDNEW
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/core/browser/bookmark_index.h" 5 #include "components/bookmarks/browser/bookmark_index.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "components/bookmarks/core/browser/bookmark_match.h" 15 #include "components/bookmarks/browser/bookmark_match.h"
16 #include "components/bookmarks/core/browser/bookmark_model.h" 16 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/bookmarks/core/test/bookmark_test_helpers.h" 17 #include "components/bookmarks/test/bookmark_test_helpers.h"
18 #include "components/bookmarks/core/test/test_bookmark_client.h" 18 #include "components/bookmarks/test/test_bookmark_client.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using base::ASCIIToUTF16; 21 using base::ASCIIToUTF16;
22 using base::UTF8ToUTF16; 22 using base::UTF8ToUTF16;
23 23
24 namespace { 24 namespace {
25 25
26 const char kAboutBlankURL[] = "about:blank"; 26 const char kAboutBlankURL[] = "about:blank";
27 27
28 class BookmarkClientMock : public test::TestBookmarkClient { 28 class BookmarkClientMock : public test::TestBookmarkClient {
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 matches.clear(); 454 matches.clear();
455 // Select top two matches. 455 // Select top two matches.
456 model->GetBookmarksMatching(ASCIIToUTF16("google"), 2, &matches); 456 model->GetBookmarksMatching(ASCIIToUTF16("google"), 2, &matches);
457 457
458 ASSERT_EQ(2, static_cast<int>(matches.size())); 458 ASSERT_EQ(2, static_cast<int>(matches.size()));
459 EXPECT_EQ(data[0].url, matches[0].node->url()); 459 EXPECT_EQ(data[0].url, matches[0].node->url());
460 EXPECT_EQ(data[3].url, matches[1].node->url()); 460 EXPECT_EQ(data[3].url, matches[1].node->url());
461 } 461 }
462 462
463 } // namespace 463 } // namespace
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_index.cc ('k') | components/bookmarks/browser/bookmark_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698