| 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/ui/views/bookmarks/bookmark_context_menu.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 ASSERT_EQ(bb_node->GetChild(0)->url(), bb_node->GetChild(1)->url()); | 322 ASSERT_EQ(bb_node->GetChild(0)->url(), bb_node->GetChild(1)->url()); |
| 323 | 323 |
| 324 controller.reset(new BookmarkContextMenu( | 324 controller.reset(new BookmarkContextMenu( |
| 325 NULL, NULL, profile_.get(), NULL, nodes[0]->parent(), nodes, false)); | 325 NULL, NULL, profile_.get(), NULL, nodes[0]->parent(), nodes, false)); |
| 326 // Cut the URL. | 326 // Cut the URL. |
| 327 controller->ExecuteCommand(IDC_CUT, 0); | 327 controller->ExecuteCommand(IDC_CUT, 0); |
| 328 ASSERT_TRUE(bb_node->GetChild(0)->is_url()); | 328 ASSERT_TRUE(bb_node->GetChild(0)->is_url()); |
| 329 ASSERT_TRUE(bb_node->GetChild(1)->is_folder()); | 329 ASSERT_TRUE(bb_node->GetChild(1)->is_folder()); |
| 330 ASSERT_EQ(old_count, bb_node->child_count()); | 330 ASSERT_EQ(old_count, bb_node->child_count()); |
| 331 } | 331 } |
| OLD | NEW |