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

Side by Side Diff: chrome/browser/autocomplete/bookmark_provider_unittest.cc

Issue 562693002: Move TestBookmarkClient into bookmarks namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix enhanced_bookmarks Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/history/expire_history_backend_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 { "", "http://emptytitle.com/" }, 65 { "", "http://emptytitle.com/" },
66 }; 66 };
67 67
68 class BookmarkProviderTest : public testing::Test { 68 class BookmarkProviderTest : public testing::Test {
69 public: 69 public:
70 BookmarkProviderTest(); 70 BookmarkProviderTest();
71 71
72 protected: 72 protected:
73 virtual void SetUp() OVERRIDE; 73 virtual void SetUp() OVERRIDE;
74 74
75 test::TestBookmarkClient client_; 75 bookmarks::TestBookmarkClient client_;
76 scoped_ptr<TestingProfile> profile_; 76 scoped_ptr<TestingProfile> profile_;
77 scoped_ptr<BookmarkModel> model_; 77 scoped_ptr<BookmarkModel> model_;
78 scoped_refptr<BookmarkProvider> provider_; 78 scoped_refptr<BookmarkProvider> provider_;
79 79
80 private: 80 private:
81 DISALLOW_COPY_AND_ASSIGN(BookmarkProviderTest); 81 DISALLOW_COPY_AND_ASSIGN(BookmarkProviderTest);
82 }; 82 };
83 83
84 BookmarkProviderTest::BookmarkProviderTest() { 84 BookmarkProviderTest::BookmarkProviderTest() {
85 model_ = client_.CreateModel(); 85 model_ = client_.CreateModel();
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 ASSERT_EQ(2U, chunks.size()) << description; 465 ASSERT_EQ(2U, chunks.size()) << description;
466 size_t offset; 466 size_t offset;
467 EXPECT_TRUE(base::StringToSizeT(chunks[0], &offset)) << description; 467 EXPECT_TRUE(base::StringToSizeT(chunks[0], &offset)) << description;
468 EXPECT_EQ(offset, match.contents_class[i].offset) << description; 468 EXPECT_EQ(offset, match.contents_class[i].offset) << description;
469 int style; 469 int style;
470 EXPECT_TRUE(base::StringToInt(chunks[1], &style)) << description; 470 EXPECT_TRUE(base::StringToInt(chunks[1], &style)) << description;
471 EXPECT_EQ(style, match.contents_class[i].style) << description; 471 EXPECT_EQ(style, match.contents_class[i].style) << description;
472 } 472 }
473 } 473 }
474 } 474 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/expire_history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698