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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm

Issue 2798113002: [Mac] Remove more dead code from bookmark bar controller (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
index b795a0574d7d67da91de638257bf6afa70feb897..97056cdfdf7c9a3a423fffe78d21d50ff28c84ce 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
@@ -666,27 +666,6 @@ TEST_F(BookmarkBarControllerTest, TestDragShouldLockBarVisibility) {
EXPECT_FALSE([bar_ dragShouldLockBarVisibility]);
}
-TEST_F(BookmarkBarControllerTest, TagMap) {
- int64_t ids[] = {1, 3, 4, 40, 400, 4000, 800000000, 2, 123456789};
- std::vector<int32_t> tags;
-
- // Generate some tags
- for (unsigned int i = 0; i < arraysize(ids); i++) {
- tags.push_back([bar_ menuTagFromNodeId:ids[i]]);
- }
-
- // Confirm reverse mapping.
- for (unsigned int i = 0; i < arraysize(ids); i++) {
- EXPECT_EQ(ids[i], [bar_ nodeIdFromMenuTag:tags[i]]);
- }
-
- // Confirm uniqueness.
- std::sort(tags.begin(), tags.end());
- for (unsigned int i=0; i<(tags.size()-1); i++) {
- EXPECT_NE(tags[i], tags[i+1]);
- }
-}
-
// Confirm openBookmark: forwards the request to the controller's delegate
TEST_F(BookmarkBarControllerTest, OpenBookmark) {
GURL gurl("http://walla.walla.ding.dong.com");
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698