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

Side by Side Diff: chrome/browser/ui/views/bookmark_context_menu_test.cc

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/bookmarks/bookmark_utils.h" 9 #include "chrome/browser/bookmarks/bookmark_utils.h"
10 #include "chrome/browser/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
11 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/tab_contents/page_navigator.h" 13 #include "chrome/browser/tab_contents/page_navigator.h"
14 #include "chrome/browser/views/bookmark_context_menu.h" 14 #include "chrome/browser/ui/views/bookmark_context_menu.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "chrome/test/testing_profile.h" 16 #include "chrome/test/testing_profile.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 #if defined(OS_WIN) 20 #if defined(OS_WIN)
21 #include "chrome/browser/views/bookmark_bar_view.h" 21 #include "chrome/browser/ui/views/bookmark_bar_view.h"
22 #endif 22 #endif
23 23
24 namespace { 24 namespace {
25 25
26 // PageNavigator implementation that records the URL. 26 // PageNavigator implementation that records the URL.
27 class TestingPageNavigator : public PageNavigator { 27 class TestingPageNavigator : public PageNavigator {
28 public: 28 public:
29 virtual void OpenURL(const GURL& url, 29 virtual void OpenURL(const GURL& url,
30 const GURL& referrer, 30 const GURL& referrer,
31 WindowOpenDisposition disposition, 31 WindowOpenDisposition disposition,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 controller.reset(new BookmarkContextMenu( 309 controller.reset(new BookmarkContextMenu(
310 NULL, profile_.get(), NULL, nodes[0]->GetParent(), nodes)); 310 NULL, profile_.get(), NULL, nodes[0]->GetParent(), nodes));
311 // Cut the URL. 311 // Cut the URL.
312 controller->ExecuteCommand(IDC_CUT); 312 controller->ExecuteCommand(IDC_CUT);
313 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(0)->is_url()); 313 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(0)->is_url());
314 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(1)->is_folder()); 314 ASSERT_TRUE(model_->GetBookmarkBarNode()->GetChild(1)->is_folder());
315 ASSERT_EQ(old_count, model_->GetBookmarkBarNode()->GetChildCount()); 315 ASSERT_EQ(old_count, model_->GetBookmarkBarNode()->GetChildCount());
316 } 316 }
317 317
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmark_context_menu_controller_views.cc ('k') | chrome/browser/ui/views/bookmark_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698