Lines Matching defs:menu_model
37 StatusIconMenuModel* menu_model() {
51 menu_model()->AddItem(0, ASCIIToUTF16("foo"));
53 menu_model()->SetCommandIdChecked(0, true);
54 EXPECT_TRUE(menu_model()->IsCommandIdChecked(0));
55 menu_model()->SetCommandIdChecked(0, false);
56 EXPECT_FALSE(menu_model()->IsCommandIdChecked(0));
58 menu_model()->SetCommandIdEnabled(0, true);
59 EXPECT_TRUE(menu_model()->IsCommandIdEnabled(0));
60 menu_model()->SetCommandIdEnabled(0, false);
61 EXPECT_FALSE(menu_model()->IsCommandIdEnabled(0));
63 menu_model()->SetCommandIdVisible(0, true);
64 EXPECT_TRUE(menu_model()->IsCommandIdVisible(0));
65 menu_model()->SetCommandIdVisible(0, false);
66 EXPECT_FALSE(menu_model()->IsCommandIdVisible(0));
73 menu_model()->AddItem(0, ASCIIToUTF16("foo1"));
74 menu_model()->AddItem(1, ASCIIToUTF16("foo2"));
83 EXPECT_FALSE(menu_model()->GetAcceleratorForCommandId(0, &accel_arg));
84 EXPECT_FALSE(menu_model()->GetIconForCommandId(0, &image_arg));
85 EXPECT_FALSE(menu_model()->IsItemForCommandIdDynamic(0));
88 menu_model()->SetAcceleratorForCommandId(0, &test_accel);
89 EXPECT_TRUE(menu_model()->GetAcceleratorForCommandId(0, &accel_arg));
94 menu_model()->ChangeLabelForCommandId(0, ASCIIToUTF16("label1"));
95 EXPECT_TRUE(menu_model()->IsItemForCommandIdDynamic(0));
96 EXPECT_EQ(ASCIIToUTF16("label1"), menu_model()->GetLabelForCommandId(0));
97 menu_model()->ChangeLabelForCommandId(0, ASCIIToUTF16("label2"));
98 EXPECT_EQ(ASCIIToUTF16("label2"), menu_model()->GetLabelForCommandId(0));
101 menu_model()->ChangeSublabelForCommandId(1, ASCIIToUTF16("sublabel"));
102 EXPECT_EQ(ASCIIToUTF16("sublabel"), menu_model()->GetSublabelForCommandId(1));
105 menu_model()->ChangeIconForCommandId(1, test_image1);
106 EXPECT_TRUE(menu_model()->GetIconForCommandId(1, &image_arg));
108 menu_model()->ChangeIconForCommandId(1, test_image2);
109 EXPECT_TRUE(menu_model()->GetIconForCommandId(1, &image_arg));
113 EXPECT_FALSE(menu_model()->GetAcceleratorForCommandId(1, &accel_arg));
114 EXPECT_EQ(base::string16(), menu_model()->GetLabelForCommandId(1));
115 EXPECT_EQ(base::string16(), menu_model()->GetSublabelForCommandId(0));
116 EXPECT_FALSE(menu_model()->GetIconForCommandId(0, &image_arg));