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

Side by Side Diff: chrome/browser/ui/tabs/tab_menu_model_unittest.cc

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/browser/ui/tabs/tab_menu_model.cc ('k') | chrome/browser/ui/tests/browser_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_menu_model.h" 5 #include "chrome/browser/ui/tabs/tab_menu_model.h"
6 6
7 #include "chrome/test/menu_model_test.h" 7 #include "chrome/test/menu_model_test.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "testing/platform_test.h" 9 #include "testing/platform_test.h"
10 10
11 class TabMenuModelTest : public PlatformTest, public MenuModelTest { 11 class TabMenuModelTest : public PlatformTest, public MenuModelTest {
12 }; 12 };
13 13
14 TEST_F(TabMenuModelTest, Basics) { 14 TEST_F(TabMenuModelTest, Basics) {
15 TabMenuModel model(&delegate_, true); 15 TabMenuModel model(&delegate_, true);
16 16
17 // Verify it has items. The number varies by platform, so we don't check 17 // Verify it has items. The number varies by platform, so we don't check
18 // the exact number. 18 // the exact number.
19 EXPECT_GT(model.GetItemCount(), 5); 19 EXPECT_GT(model.GetItemCount(), 5);
20 20
21 int item_count = 0; 21 int item_count = 0;
22 CountEnabledExecutable(&model, &item_count); 22 CountEnabledExecutable(&model, &item_count);
23 EXPECT_GT(item_count, 0); 23 EXPECT_GT(item_count, 0);
24 EXPECT_EQ(item_count, delegate_.execute_count_); 24 EXPECT_EQ(item_count, delegate_.execute_count_);
25 EXPECT_EQ(item_count, delegate_.enable_count_); 25 EXPECT_EQ(item_count, delegate_.enable_count_);
26 } 26 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_menu_model.cc ('k') | chrome/browser/ui/tests/browser_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698