Home
last modified time | relevance | path

Searched refs:item1 (Results 1 – 25 of 35) sorted by relevance

12

/external/chromium_org/chrome/browser/extensions/
Dmenu_manager_unittest.cc112 MenuItem* item1 = CreateTestItem(extension); in TEST_F() local
113 ASSERT_TRUE(item1 != NULL); in TEST_F()
114 ASSERT_TRUE(manager_.AddContextItem(extension, item1)); in TEST_F()
115 ASSERT_EQ(item1, manager_.GetItemById(item1->id())); in TEST_F()
116 const MenuItem::List* items = manager_.MenuItems(item1->id().extension_key); in TEST_F()
118 ASSERT_EQ(item1, items->at(0)); in TEST_F()
126 ASSERT_EQ(item1, items->at(0)); in TEST_F()
162 MenuItem* item1 = CreateTestItem(extension1); in TEST_F() local
172 ASSERT_TRUE(manager_.AddContextItem(extension1, item1)); in TEST_F()
175 MenuItem::Id id1 = item1->id(); in TEST_F()
[all …]
/external/chromium_org/ui/app_list/
Dapp_list_model_unittest.cc139 AppListItem* item1 = model_.top_level_item_list()->item_at(1); in TEST_F() local
140 ASSERT_TRUE(item1); in TEST_F()
141 EXPECT_EQ(model_.GetItemName(1), item1->id()); in TEST_F()
152 AppListItem* item1 = model_.FindItem(item_name1); in TEST_F() local
153 ASSERT_TRUE(item1); in TEST_F()
154 EXPECT_EQ(item_name1, item1->id()); in TEST_F()
168 AppListItem* item1 = model_.top_level_item_list()->item_at(1); in TEST_F() local
169 ASSERT_TRUE(item1); in TEST_F()
174 item2, item0->position().CreateBetween(item1->position())); in TEST_F()
292 AppListItem* item1 = model_.top_level_item_list()->item_at(1); in TEST_F() local
[all …]
/external/chromium_org/chrome/browser/profiles/
Dprofile_list_desktop_unittest.cc106 const AvatarMenu::Item& item1 = model->GetItemAt(0); in TEST_F() local
107 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
108 EXPECT_EQ(ASCIIToUTF16("Test 1"), item1.name); in TEST_F()
127 const AvatarMenu::Item& item1 = profile_list.GetItemAt(0); in TEST_F() local
128 EXPECT_EQ(0u, item1.menu_index); in TEST_F()
129 EXPECT_EQ(0u, item1.profile_index); in TEST_F()
130 EXPECT_EQ(ASCIIToUTF16("1 included"), item1.name); in TEST_F()
169 const AvatarMenu::Item& item1 = profile_list.GetItemAt(0); in TEST_F() local
170 EXPECT_EQ(0u, item1.menu_index); in TEST_F()
171 EXPECT_EQ(1u, item1.profile_index); in TEST_F()
[all …]
Davatar_menu.cc123 bool AvatarMenu::CompareItems(const Item* item1, const Item* item2) { in CompareItems() argument
124 return base::i18n::ToLower(item1->name).compare( in CompareItems()
Davatar_menu.h102 static bool CompareItems(const Item* item1, const Item* item2);
/external/chromium_org/chrome/browser/chromeos/profiles/
Dprofile_list_chromeos_unittest.cc128 const AvatarMenu::Item& item1 = menu->GetItemAt(0); in TEST_F() local
129 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
130 EXPECT_EQ(name1, item1.name); in TEST_F()
148 const AvatarMenu::Item& item1 = menu->GetItemAt(0); in TEST_F() local
149 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
150 EXPECT_EQ(name1, item1.name); in TEST_F()
174 const AvatarMenu::Item& item1 = menu->GetItemAt(0); in TEST_F() local
175 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
176 EXPECT_EQ(name1, item1.name); in TEST_F()
234 const AvatarMenu::Item& item1 = menu->GetItemAt(0); in TEST_F() local
[all …]
/external/chromium_org/media/video/capture/win/
Dcapability_list_win.cc22 bool CompareHeight(const ResolutionDiff& item1, const ResolutionDiff& item2) { in CompareHeight() argument
23 return abs(item1.diff_height) < abs(item2.diff_height); in CompareHeight()
26 bool CompareWidth(const ResolutionDiff& item1, const ResolutionDiff& item2) { in CompareWidth() argument
27 return abs(item1.diff_width) < abs(item2.diff_width); in CompareWidth()
30 bool CompareFrameRate(const ResolutionDiff& item1, in CompareFrameRate() argument
32 return abs(item1.diff_frame_rate) < abs(item2.diff_frame_rate); in CompareFrameRate()
35 bool CompareColor(const ResolutionDiff& item1, const ResolutionDiff& item2) { in CompareColor() argument
36 return item1.capability->supported_format.pixel_format < in CompareColor()
/external/chromium_org/chrome/browser/ui/cocoa/applescript/
Dbookmark_item_applescript_unittest.mm24 BookmarkItemAppleScript* item1 = [bookmarkItems objectAtIndex:0];
25 [item1 setTitle:@"Foo"];
26 EXPECT_NSEQ(@"Foo", [item1 title]);
32 BookmarkItemAppleScript* item1 = [bookmarkItems objectAtIndex:0];
33 [item1 setURL:@"http://foo-bar.org"];
35 GURL(base::SysNSStringToUTF8([item1 URL])));
40 [item1 setURL:@"invalid-url.org"];
/external/chromium_org/base/containers/
Dmru_cache_unittest.cc47 CachedItem item1(10); in TEST() local
48 Cache::iterator inserted_item = cache.Put(kItem1Key, item1); in TEST()
61 EXPECT_EQ(item1.value, found->second.value); in TEST()
74 EXPECT_EQ(item1.value, oldest->second.value); in TEST()
82 EXPECT_EQ(item1.value, test_item->second.value); in TEST()
101 EXPECT_EQ(item1.value, next->second.value); in TEST()
108 cache.Put(kItem1Key, item1); in TEST()
120 CachedItem item1(10); in TEST() local
121 cache.Put(kItem1Key, item1); in TEST()
135 EXPECT_EQ(item1.value, iter->second.value); in TEST()
[all …]
/external/chromium_org/net/base/
Dtrace_net_log_observer_unittest.cc178 const base::DictionaryValue* item1 = NULL; in TEST_F() local
179 ASSERT_TRUE(trace_events()->GetDictionary(0, &item1)); in TEST_F()
185 TraceEntryInfo actual_item1 = GetTraceEntryInfoFromValue(*item1); in TEST_F()
232 const base::DictionaryValue* item1 = NULL; in TEST_F() local
233 ASSERT_TRUE(trace_events()->GetDictionary(0, &item1)); in TEST_F()
237 TraceEntryInfo actual_item1 = GetTraceEntryInfoFromValue(*item1); in TEST_F()
273 const base::DictionaryValue* item1 = NULL; in TEST_F() local
274 ASSERT_TRUE(trace_events()->GetDictionary(0, &item1)); in TEST_F()
276 TraceEntryInfo actual_item1 = GetTraceEntryInfoFromValue(*item1); in TEST_F()
338 const base::DictionaryValue* item1 = NULL; in TEST_F() local
[all …]
/external/chromium_org/tools/grit/grit/gather/
Dpolicy_json.py200 for item1 in items:
202 for key in item1.keys():
205 self._AddItems(item1['items'], 'enum_item', item1, depth + 2)
209 self._AddItems(item1['policies'], 'policy', item1, depth + 2)
212 self._AddPolicyKey(item1, item_type, parent_item, key, depth + 1)
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dchrome_launcher_controller_browsertest.cc398 const ash::ShelfItem& item1 = GetLastLauncherItem(); in IN_PROC_BROWSER_TEST_F() local
399 ash::ShelfID id = item1.id; in IN_PROC_BROWSER_TEST_F()
400 EXPECT_EQ(ash::TYPE_PLATFORM_APP, item1.type); in IN_PROC_BROWSER_TEST_F()
401 EXPECT_EQ(ash::STATUS_ACTIVE, item1.status); in IN_PROC_BROWSER_TEST_F()
485 const ash::ShelfItem& item1 = GetLastLauncherItem(); in IN_PROC_BROWSER_TEST_F() local
486 ash::ShelfID item_id = item1.id; in IN_PROC_BROWSER_TEST_F()
487 EXPECT_EQ(ash::TYPE_PLATFORM_APP, item1.type); in IN_PROC_BROWSER_TEST_F()
488 EXPECT_EQ(ash::STATUS_ACTIVE, item1.status); in IN_PROC_BROWSER_TEST_F()
489 EXPECT_EQ(2, GetNumApplicationMenuItems(item1)); // Title + 1 window in IN_PROC_BROWSER_TEST_F()
522 const ash::ShelfItem& item1 = GetLastLauncherItem(); in IN_PROC_BROWSER_TEST_F() local
[all …]
/external/chromium_org/chrome/browser/sync/test/integration/
Dsync_app_list_helper.cc72 AppListItem* item1 = service->model()->top_level_item_list()->item_at(i); in AppListMatchesVerifier() local
74 if (item1->CompareForTest(item2)) in AppListMatchesVerifier()
77 LOG(ERROR) << "Item(" << i << "): " << item1->ToDebugString() in AppListMatchesVerifier()
80 if (!verifier->model()->top_level_item_list()->FindItemIndex(item1->id(), in AppListMatchesVerifier()
82 LOG(ERROR) << " Item(" << i << "): " << item1->ToDebugString() in AppListMatchesVerifier()
85 LOG(ERROR) << " Item(" << i << "): " << item1->ToDebugString() in AppListMatchesVerifier()
/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Dnavigation_list_model.js26 NavigationModelItem.isSame = function(item1, item2) { argument
27 if (item1.isVolume != item2.isVolume)
30 if (item1.isVolume)
31 return item1.volumeInfo === item2.volumeInfo;
33 return util.isSameEntry(item1.entry, item2.entry);
/external/chromium_org/chrome/browser/ui/cocoa/
Dhistory_menu_bridge_unittest.mm180 HistoryMenuBridge::HistoryItem* item1 = CreateItem(short_url);
181 AddItemToBridgeMenu(item1, menu, 100, 0);
230 NSMenuItem* item1 = [menu itemAtIndex:0];
231 MockBridge::HistoryItem* hist1 = bridge_->HistoryItemForMenuItem(item1);
234 EXPECT_NSEQ(@"Google", [item1 title]);
282 NSMenuItem* item1 = [menu itemAtIndex:0];
283 MockBridge::HistoryItem* hist1 = bridge_->HistoryItemForMenuItem(item1);
286 EXPECT_NSEQ(@"Google", [item1 title]);
/external/chromium_org/chrome/common/extensions/docs/server2/
Dsidenav_data_source_test.py43 item1 = { 'href': '/H1.html' }
48 expected = [ item1, item2 ]
/external/lldb/source/Host/macosx/launcherXPCService/
DLauncherRootXPCService.mm28 AuthorizationItem item1 = { LaunchUsingXPCRightName, 0, NULL, 0 };
29 AuthorizationItem items[] = {item1};
/external/markdown/tests/misc/
Dlists4.txt2 * item1
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DAnnotationItem.java70 public int compare(AnnotationItem item1, AnnotationItem item2) { in compare() argument
71 int index1 = item1.type.getIndex(); in compare()
DMixedItemSection.java56 public int compare(OffsettedItem item1, OffsettedItem item2) {
57 ItemType type1 = item1.itemType();
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/
Darray_data_model.js333 var item1 = this.array_[index1];
338 compareResult = compareFunction.call(null, item1, item2);
/external/chromium_org/ui/webui/resources/js/cr/ui/
Darray_data_model.js421 var item1 = this.array_[index1];
426 compareResult = compareFunction.call(null, item1, item2);
/external/chromium_org/sync/syncable/
Ddirectory_unittest.cc448 MutableEntry item1(&trans, GET_BY_ID, id1); in TEST_F() local
449 ASSERT_TRUE(item1.good()); in TEST_F()
450 handle1 = item1.GetMetahandle(); in TEST_F()
451 item1.PutSpecifics(bookmark_specifics); in TEST_F()
452 item1.PutServerSpecifics(bookmark_specifics); in TEST_F()
472 MutableEntry item1(&trans, GET_BY_ID, id1); in TEST_F() local
473 ASSERT_TRUE(item1.good()); in TEST_F()
474 item1.PutServerIsDel(true); in TEST_F()
537 MutableEntry item1(&trans, GET_BY_ID, id1); in TEST_F() local
538 ASSERT_TRUE(item1.good()); in TEST_F()
[all …]
Dsyncable_unittest.cc232 MutableEntry item1(&trans, CREATE, BOOKMARKS, trans.root_id(), "Item"); in TEST_F() local
233 ASSERT_TRUE(item1.good()); in TEST_F()
234 item1.PutServerSpecifics(bookmark_specs); in TEST_F()
235 item1.PutIsUnsynced(true); in TEST_F()
/external/chromium_org/chrome/browser/download/
Ddownload_path_reservation_tracker_unittest.cc295 scoped_ptr<MockDownloadItem> item1(CreateDownloadItem(1)); in TEST_F() local
310 item1.get(), in TEST_F()
378 SetDownloadItemState(item1.get(), DownloadItem::COMPLETE); in TEST_F()

12