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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc

Issue 10977060: bookmarks: Move context menu controller into ui/bookmarks directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 | Annotate | Revision Log
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 <string> 5 #include <string>
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/bookmarks/bookmark_context_menu_controller.h"
11 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
13 #include "chrome/browser/bookmarks/bookmark_utils.h" 12 #include "chrome/browser/bookmarks/bookmark_utils.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h"
15 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "content/public/browser/page_navigator.h" 16 #include "content/public/browser/page_navigator.h"
17 #include "content/public/test/test_browser_thread.h" 17 #include "content/public/test/test_browser_thread.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "ui/base/clipboard/clipboard.h" 20 #include "ui/base/clipboard/clipboard.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 using content::OpenURLParams; 23 using content::OpenURLParams;
24 using content::PageNavigator; 24 using content::PageNavigator;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 ASSERT_EQ(bb_node->GetChild(0)->url(), bb_node->GetChild(1)->url()); 323 ASSERT_EQ(bb_node->GetChild(0)->url(), bb_node->GetChild(1)->url());
324 324
325 controller.reset(new BookmarkContextMenuController( 325 controller.reset(new BookmarkContextMenuController(
326 NULL, NULL, NULL, profile_.get(), NULL, nodes[0]->parent(), nodes)); 326 NULL, NULL, NULL, profile_.get(), NULL, nodes[0]->parent(), nodes));
327 // Cut the URL. 327 // Cut the URL.
328 controller->ExecuteCommand(IDC_CUT); 328 controller->ExecuteCommand(IDC_CUT);
329 ASSERT_TRUE(bb_node->GetChild(0)->is_url()); 329 ASSERT_TRUE(bb_node->GetChild(0)->is_url());
330 ASSERT_TRUE(bb_node->GetChild(1)->is_folder()); 330 ASSERT_TRUE(bb_node->GetChild(1)->is_folder());
331 ASSERT_EQ(old_count, bb_node->child_count()); 331 ASSERT_EQ(old_count, bb_node->child_count());
332 } 332 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698