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

Side by Side Diff: chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc

Issue 14497003: Moves TabNavigation into components/sessions and renames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really remove webkit_support Created 7 years, 7 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 "chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h" 5 #include "chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/sessions/session_types.h" 8 #include "chrome/browser/sessions/session_types.h"
9 #include "chrome/browser/sessions/session_types_test_helper.h"
10 #include "chrome/browser/sync/glue/session_model_associator.h" 9 #include "chrome/browser/sync/glue/session_model_associator.h"
11 #include "chrome/browser/sync/glue/synced_session.h" 10 #include "chrome/browser/sync/glue/synced_session.h"
12 #include "chrome/browser/sync/profile_sync_service_mock.h" 11 #include "chrome/browser/sync/profile_sync_service_mock.h"
13 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/browser_tabstrip.h" 13 #include "chrome/browser/ui/browser_tabstrip.h"
15 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h" 14 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h"
16 #include "chrome/test/base/browser_with_test_window_test.h" 15 #include "chrome/test/base/browser_with_test_window_test.h"
17 #include "chrome/test/base/menu_model_test.h" 16 #include "chrome/test/base/menu_model_test.h"
18 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // 0 Reopen closed tab 276 // 0 Reopen closed tab
278 // 1 <separator> 277 // 1 <separator>
279 // 2 No tabs from other Devices 278 // 2 No tabs from other Devices
280 279
281 TestRecentTabsSubMenuModel model(NULL, browser(), NULL, false); 280 TestRecentTabsSubMenuModel model(NULL, browser(), NULL, false);
282 EXPECT_EQ(3, model.GetItemCount()); 281 EXPECT_EQ(3, model.GetItemCount());
283 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(0)); 282 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(0));
284 EXPECT_NE(-1, model.GetMaxWidthForItemAtIndex(1)); 283 EXPECT_NE(-1, model.GetMaxWidthForItemAtIndex(1));
285 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(2)); 284 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(2));
286 } 285 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc ('k') | chrome/browser/ui/webui/ntp/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698