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

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

Issue 1443453002: [Sync] Move sessions files from sync_driver to sync_sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ui/gfx deps. Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/sync/browser_synced_window_delegates_getter.h" 21 #include "chrome/browser/ui/sync/browser_synced_window_delegates_getter.h"
22 #include "chrome/browser/ui/tabs/tab_strip_model.h" 22 #include "chrome/browser/ui/tabs/tab_strip_model.h"
23 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h" 23 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/test/base/browser_with_test_window_test.h" 25 #include "chrome/test/base/browser_with_test_window_test.h"
26 #include "chrome/test/base/menu_model_test.h" 26 #include "chrome/test/base/menu_model_test.h"
27 #include "chrome/test/base/testing_profile.h" 27 #include "chrome/test/base/testing_profile.h"
28 #include "components/sessions/core/persistent_tab_restore_service.h" 28 #include "components/sessions/core/persistent_tab_restore_service.h"
29 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 29 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
30 #include "components/sessions/core/session_types.h" 30 #include "components/sessions/core/session_types.h"
31 #include "components/sync_driver/glue/synced_session.h"
32 #include "components/sync_driver/local_device_info_provider_mock.h" 31 #include "components/sync_driver/local_device_info_provider_mock.h"
33 #include "components/sync_driver/sync_client.h" 32 #include "components/sync_driver/sync_client.h"
34 #include "components/sync_driver/sync_prefs.h" 33 #include "components/sync_driver/sync_prefs.h"
35 #include "components/sync_sessions/sessions_sync_manager.h" 34 #include "components/sync_sessions/sessions_sync_manager.h"
35 #include "components/sync_sessions/synced_session.h"
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 #include "content/public/test/test_utils.h" 37 #include "content/public/test/test_utils.h"
38 #include "grit/generated_resources.h" 38 #include "grit/generated_resources.h"
39 #include "sync/api/fake_sync_change_processor.h" 39 #include "sync/api/fake_sync_change_processor.h"
40 #include "sync/api/sync_error_factory_mock.h" 40 #include "sync/api/sync_error_factory_mock.h"
41 #include "testing/gmock/include/gmock/gmock.h" 41 #include "testing/gmock/include/gmock/gmock.h"
42 #include "testing/gtest/include/gtest/gtest.h" 42 #include "testing/gtest/include/gtest/gtest.h"
43 43
44 namespace { 44 namespace {
45 45
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 // 2 Recently closed heaer (disabled) 597 // 2 Recently closed heaer (disabled)
598 // 3 <separator> 598 // 3 <separator>
599 // 4 No tabs from other Devices 599 // 4 No tabs from other Devices
600 600
601 TestRecentTabsSubMenuModel model(NULL, browser(), NULL); 601 TestRecentTabsSubMenuModel model(NULL, browser(), NULL);
602 EXPECT_EQ(5, model.GetItemCount()); 602 EXPECT_EQ(5, model.GetItemCount());
603 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(2)); 603 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(2));
604 EXPECT_NE(-1, model.GetMaxWidthForItemAtIndex(3)); 604 EXPECT_NE(-1, model.GetMaxWidthForItemAtIndex(3));
605 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(4)); 605 EXPECT_EQ(-1, model.GetMaxWidthForItemAtIndex(4));
606 } 606 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc ('k') | chrome/browser/ui/webui/favicon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698