/external/chromium_org/ash/shelf/ |
D | shelf_model_unittest.cc | 84 model_.reset(new ShelfModel); in SetUp() 86 EXPECT_EQ(0, model_->item_count()); in SetUp() 90 model_->Add(item); in SetUp() 91 EXPECT_EQ(1, model_->item_count()); in SetUp() 93 model_->AddObserver(observer_.get()); in SetUp() 98 model_.reset(); in TearDown() 101 scoped_ptr<ShelfModel> model_; member in ash::ShelfModelTest 112 int index = model_->Add(item); in TEST_F() 113 EXPECT_EQ(2, model_->item_count()); in TEST_F() 117 ShelfID original_id = model_->items()[index].id; in TEST_F() [all …]
|
D | shelf_window_watcher_unittest.cc | 27 ShelfWindowWatcherTest() : model_(NULL) {} in ShelfWindowWatcherTest() 32 model_ = test::ShellTestApi(Shell::GetInstance()).shelf_model(); in SetUp() 36 model_ = NULL; in TearDown() 41 ShelfID id = model_->next_id(); in CreateShelfItem() 49 ShelfModel* model_; member in ash::ShelfWindowWatcherTest 57 EXPECT_EQ(1, model_->item_count()); in TEST_F() 64 EXPECT_EQ(2, model_->item_count()); in TEST_F() 66 int index_w1 = model_->ItemIndexByID(id_w1); in TEST_F() 67 EXPECT_EQ(STATUS_RUNNING, model_->items()[index_w1].status); in TEST_F() 71 EXPECT_EQ(3, model_->item_count()); in TEST_F() [all …]
|
D | shelf_navigator_unittest.cc | 25 model_.reset(new ShelfModel); in SetUp() 30 model_->Add(app_list); in SetUp() 33 int total_num = model_->item_count(); in SetUp() 35 EXPECT_TRUE(model_->items()[0].type == TYPE_APP_LIST); in SetUp() 40 model_->Add(browser_shortcut); in SetUp() 51 model_->Add(new_item); in SetupMockShelfModel() 56 ShelfItem focused_item =model_->items()[focused_index]; in SetupMockShelfModel() 59 model_->Set(focused_index, focused_item); in SetupMockShelfModel() 64 const ShelfModel& model() { return *model_.get(); } in model() 67 scoped_ptr<ShelfModel> model_; member in ash::__anonac74abbd0111::ShelfNavigatorTest
|
/external/chromium_org/ui/app_list/ |
D | app_list_model_unittest.cc | 82 model_.AddObserver(&observer_); in SetUp() 85 model_.RemoveObserver(&observer_); in TearDown() 105 return GetItemListContents(model_.top_level_item_list()); in GetModelContents() 108 test::AppListTestModel model_; member in app_list::AppListModelTest 116 EXPECT_EQ(AppListModel::STATUS_NORMAL, model_.status()); in TEST_F() 117 model_.SetStatus(AppListModel::STATUS_SYNCING); in TEST_F() 119 EXPECT_EQ(AppListModel::STATUS_SYNCING, model_.status()); in TEST_F() 120 model_.SetStatus(AppListModel::STATUS_NORMAL); in TEST_F() 123 model_.SetStatus(AppListModel::STATUS_NORMAL); in TEST_F() 129 model_.PopulateApps(num_apps); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/passwords/ |
D | manage_passwords_bubble_model_unittest.cc | 33 model_.reset(new ManagePasswordsBubbleModel(test_web_contents_.get())); in SetUp() 36 virtual void TearDown() OVERRIDE { model_.reset(); } in TearDown() 39 model_->set_state(password_manager::ui::PENDING_PASSWORD_AND_BUBBLE_STATE); in PretendPasswordWaiting() 40 model_->OnBubbleShown(ManagePasswordsBubble::AUTOMATIC); in PretendPasswordWaiting() 46 model_->set_state(password_manager::ui::MANAGE_STATE); in PretendManagingPasswords() 47 model_->OnBubbleShown(ManagePasswordsBubble::USER_ACTION); in PretendManagingPasswords() 52 model_->set_state(password_manager::ui::BLACKLIST_STATE); in PretendBlacklisted() 53 model_->OnBubbleShown(ManagePasswordsBubble::USER_ACTION); in PretendBlacklisted() 69 scoped_ptr<ManagePasswordsBubbleModel> model_; member in ManagePasswordsBubbleModelTest 79 EXPECT_EQ(model_->display_disposition(), in TEST_F() [all …]
|
/external/chromium_org/components/bookmarks/browser/ |
D | bookmark_model_unittest.cc | 142 BookmarkModelTest() : model_(client_.CreateModel()) { in BookmarkModelTest() 143 model_->AddObserver(this); in BookmarkModelTest() 277 model_->RemoveObserver(this); in ReloadModelWithExtraNode() 278 model_ = client_.CreateModel(); in ReloadModelWithExtraNode() 279 model_->AddObserver(this); in ReloadModelWithExtraNode() 282 if (model_->root_node()->GetIndexOf(extra_node) == -1) in ReloadModelWithExtraNode() 290 scoped_ptr<BookmarkModel> model_; member in bookmarks::__anone3aff2bb0111::BookmarkModelTest 311 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in TEST_F() 316 const BookmarkNode* other_node = model_->other_node(); in TEST_F() 321 const BookmarkNode* mobile_node = model_->mobile_node(); in TEST_F() [all …]
|
D | bookmark_expanded_state_tracker_unittest.cc | 49 scoped_ptr<BookmarkModel> model_; member in bookmarks::BookmarkExpandedStateTrackerTest 60 model_.reset(new BookmarkModel(&client_)); in SetUp() 61 model_->Load(prefs_.get(), in SetUp() 66 test::WaitForBookmarkModelToLoad(model_.get()); in SetUp() 70 model_.reset(); in TearDown() 75 BookmarkExpandedStateTracker* tracker = model_->expanded_state_tracker(); in TEST_F() 81 nodes.insert(model_->bookmark_bar_node()); in TEST_F() 86 const BookmarkNode* n1 = model_->AddFolder( in TEST_F() 87 model_->bookmark_bar_node(), 0, base::ASCIIToUTF16("x")); in TEST_F() 93 model_->Remove(model_->bookmark_bar_node(), 0); in TEST_F() [all …]
|
/external/chromium_org/ui/app_list/views/ |
D | apps_grid_view_unittest.cc | 44 : ui_loop_(ui_loop), model_(model), wait_(false) { in PageFlipWaiter() 45 model_->AddObserver(this); in PageFlipWaiter() 49 model_->RemoveObserver(this); in ~PageFlipWaiter() 83 PaginationModel* model_; member in app_list::test::__anon9f1e197d0111::PageFlipWaiter 100 model_.reset(new AppListTestModel); in SetUp() 101 model_->SetFoldersEnabled(true); in SetUp() 106 apps_grid_view_->SetModel(model_.get()); in SetUp() 107 apps_grid_view_->SetItemList(model_->top_level_item_list()); in SetUp() 129 for (size_t i = 0; i < model_->top_level_item_list()->item_count(); ++i) { in GetItemViewForPoint() 138 DCHECK_GT(model_->top_level_item_list()->item_count(), 0u); in GetItemTileRectAt() [all …]
|
/external/chromium_org/chrome/renderer/safe_browsing/ |
D | scorer_unittest.cc | 27 model_.Clear(); in SetUp() 28 model_.add_hashes("feature1"); in SetUp() 29 model_.add_hashes("feature2"); in SetUp() 30 model_.add_hashes("feature3"); in SetUp() 31 model_.add_hashes("token one"); in SetUp() 32 model_.add_hashes("token two"); in SetUp() 35 rule = model_.add_rule(); in SetUp() 38 rule = model_.add_rule(); in SetUp() 42 rule = model_.add_rule(); in SetUp() 47 model_.add_page_term(3); // token one in SetUp() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/bookmarks/ |
D | bookmark_api_helpers_unittest.cc | 32 : client_(NULL), model_(NULL), node_(NULL), node2_(NULL), folder_(NULL) {} in ExtensionBookmarksTest() 36 model_ = BookmarkModelFactory::GetForProfile(&profile_); in SetUp() 38 test::WaitForBookmarkModelToLoad(model_); in SetUp() 40 node_ = model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("Digg"), in SetUp() 42 model_->SetNodeMetaInfo(node_, "some_key1", "some_value1"); in SetUp() 43 model_->SetNodeMetaInfo(node_, "some_key2", "some_value2"); in SetUp() 44 model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("News"), in SetUp() 46 folder_ = model_->AddFolder( in SetUp() 47 model_->other_node(), 0, base::ASCIIToUTF16("outer folder")); in SetUp() 48 model_->SetNodeMetaInfo(folder_, "some_key1", "some_value1"); in SetUp() [all …]
|
/external/chromium_org/chrome/browser/browsing_data/ |
D | local_data_container.cc | 41 model_(NULL), in LocalDataContainer() 48 DCHECK(!model_); in Init() 49 model_ = model; in Init() 138 model_->PopulateAppCacheInfo(this); in OnAppCacheModelInfoLoaded() 146 DCHECK(model_); in OnCookiesModelInfoLoaded() 147 model_->PopulateCookieInfo(this); in OnCookiesModelInfoLoaded() 153 DCHECK(model_); in OnDatabaseModelInfoLoaded() 154 model_->PopulateDatabaseInfo(this); in OnDatabaseModelInfoLoaded() 160 DCHECK(model_); in OnLocalStorageModelInfoLoaded() 161 model_->PopulateLocalStorageInfo(this); in OnLocalStorageModelInfoLoaded() [all …]
|
/external/chromium_org/chrome/browser/sync/ |
D | profile_sync_service_bookmark_unittest.cc | 321 : model_(NULL), in ProfileSyncServiceBookmarkTest() 340 return model_->client()->CanSyncNode(node); in CanSyncNode() 402 model_ = BookmarkModelFactory::GetForProfile(&profile_); in LoadBookmarkModel() 403 test::WaitForBookmarkModelToLoad(model_); in LoadBookmarkModel() 406 model_->ClearStore(); in LoadBookmarkModel() 500 int local_count_before = model_->root_node()->GetTotalNodeCount(); in AssociateModels() 524 EXPECT_EQ(model_->root_node()->GetTotalNodeCount(), in AssociateModels() 562 model_ = NULL; in UnloadBookmarkModel() 582 if (!model_->is_permanent_node(bnode)) { in ExpectSyncerNodeMatching() 698 const BookmarkNode* root = model_->root_node(); in ExpectModelMatch() [all …]
|
/external/chromium_org/chrome/browser/bookmarks/ |
D | chrome_bookmark_client_unittest.cc | 32 ChromeBookmarkClientTest() : client_(NULL), model_(NULL) {} in ChromeBookmarkClientTest() 45 ASSERT_TRUE(client_->managed_node()->parent() == model_->root_node()); in SetUp() 46 EXPECT_NE(-1, model_->root_node()->GetIndexOf(client_->managed_node())); in SetUp() 50 model_->RemoveObserver(&observer_); in TearDown() 55 model_ = BookmarkModelFactory::GetForProfile(&profile_); in ResetModel() 56 test::WaitForBookmarkModelToLoad(model_); in ResetModel() 57 model_->AddObserver(&observer_); in ResetModel() 135 BookmarkModel* model_; member in ChromeBookmarkClientTest 143 model_->RemoveObserver(&observer_); in TEST_F() 154 EXPECT_TRUE(model_->bookmark_bar_node()->empty()); in TEST_F() [all …]
|
/external/chromium_org/components/policy/core/browser/ |
D | managed_bookmarks_tracker_unittest.cc | 44 if (model_) in TearDown() 45 model_->RemoveObserver(&observer_); in TearDown() 61 model_.reset(new BookmarkModel(&client_)); in CreateModel() 62 model_->AddObserver(&observer_); in CreateModel() 63 EXPECT_CALL(observer_, BookmarkModelLoaded(model_.get(), _)); in CreateModel() 64 model_->Load(&prefs_, in CreateModel() 69 test::WaitForBookmarkModelToLoad(model_.get()); in CreateModel() 77 model_.get(), in CreateModel() 166 scoped_ptr<BookmarkModel> model_; member in policy::ManagedBookmarksTrackerTest 174 EXPECT_TRUE(model_->bookmark_bar_node()->empty()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/views/tabs/ |
D | browser_tab_strip_controller.cc | 96 model_.reset(new TabMenuModel( in TabContextMenuContents() 97 this, controller->model_, in TabContextMenuContents() 100 model_.get(), in TabContextMenuContents() 163 scoped_ptr<TabMenuModel> model_; member in BrowserTabStripController::TabContextMenuContents 184 : model_(model), in BrowserTabStripController() 189 model_->AddObserver(this); in BrowserTabStripController() 205 model_->RemoveObserver(this); in ~BrowserTabStripController() 215 for (int i = 0; i < model_->count(); ++i) in InitFromModel() 216 AddTab(model_->GetWebContentsAt(i), i, model_->active_index() == i); in InitFromModel() 223 return model_->ContainsIndex(model_index) ? in IsCommandEnabledForTab() [all …]
|
/external/chromium_org/chrome/browser/ui/omnibox/ |
D | omnibox_view.cc | 110 if (!match.destination_url.is_valid() || !model_) in OpenMatch() 112 model_->OpenMatch( in OpenMatch() 118 return (model_.get() && model_->user_input_in_progress()) || in IsEditingOrEmpty() 125 int id = AutocompleteMatch::TypeToIcon(model_.get() ? in GetIcon() 126 model_->CurrentTextType() : AutocompleteMatchType::URL_WHAT_YOU_TYPED); in GetIcon() 134 if (model_->is_keyword_selected()) in GetHintText() 140 TemplateURLServiceFactory::GetForProfile(model_->profile()); in GetHintText() 162 if (model_.get()) in SetUserText() 163 model_->SetUserText(text); in SetUserText() 172 model_->UpdatePermanentText(); in ShowURL() [all …]
|
/external/chromium_org/ui/views/controls/tree/ |
D | tree_view_unittest.cc | 41 TreeViewTest() : model_(new TestNode) { in TreeViewTest() 42 static_cast<TestNode*>(model_.GetRoot())->SetTitle(ASCIIToUTF16("root")); in TreeViewTest() 43 Add(model_.GetRoot(), 0, "a"); in TreeViewTest() 44 Add(Add(model_.GetRoot(), 1, "b"), 0, "b1"); in TreeViewTest() 45 Add(model_.GetRoot(), 2, "c"); in TreeViewTest() 67 ui::TreeNodeModel<TestNode > model_; member in views::TreeViewTest 83 model_.Add(parent, new_node, index); in Add() 104 return GetNodeByTitleImpl(model_.GetRoot(), ASCIIToUTF16(title)); in GetNodeByTitle() 153 tree_.SetModel(&model_); in TEST_F() 161 tree_.SetModel(&model_); in TEST_F() [all …]
|
/external/chromium_org/components/enhanced_bookmarks/ |
D | enhanced_bookmark_model_unittest.cc | 48 model_.reset(new EnhancedBookmarkModel(bookmark_model_.get(), "v1.0")); in SetUp() 49 model_->AddObserver(this); in SetUp() 53 if (model_) in TearDown() 54 model_->Shutdown(); in TearDown() 55 model_.reset(); in TearDown() 72 return model_->AddURL(parent, in AddBookmark() 81 return model_->AddFolder(parent, 0, base::ASCIIToUTF16(name)); in AddFolder() 107 scoped_ptr<EnhancedBookmarkModel> model_; member in EnhancedBookmarkModelTest 157 std::string snippet(model_->GetSnippet(node)); in TEST_F() 177 std::string snippet(model_->GetSnippet(node)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/views/bookmarks/ |
D | bookmark_context_menu_unittest.cc | 63 model_(NULL) { in BookmarkContextMenuTest() 71 model_ = BookmarkModelFactory::GetForProfile(profile_.get()); in SetUp() 72 test::WaitForBookmarkModelToLoad(model_); in SetUp() 92 BookmarkModel* model_; member in BookmarkContextMenuTest 108 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in AddTestData() 110 model_->AddURL(bb_node, 0, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 111 const BookmarkNode* f1 = model_->AddFolder(bb_node, 1, ASCIIToUTF16("F1")); in AddTestData() 112 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a")); in AddTestData() 113 model_->AddURL(f1, 1, ASCIIToUTF16("f1b"), GURL("chrome://settings")); in AddTestData() 114 const BookmarkNode* f11 = model_->AddFolder(f1, 2, ASCIIToUTF16("F11")); in AddTestData() [all …]
|
D | bookmark_menu_delegate_unittest.cc | 23 BookmarkMenuDelegateTest() : model_(NULL) {} in BookmarkMenuDelegateTest() 30 model_ = BookmarkModelFactory::GetForProfile(profile()); in SetUp() 31 test::WaitForBookmarkModelToLoad(model_); in SetUp() 59 const BookmarkNode* node = model_->bookmark_bar_node(); in NewAndInitDelegateForPermanent() 66 BookmarkModel* model_; member in BookmarkMenuDelegateTest 86 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in AddTestData() 88 model_->AddURL(bb_node, 0, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 89 const BookmarkNode* f1 = model_->AddFolder(bb_node, 1, ASCIIToUTF16("F1")); in AddTestData() 90 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a")); in AddTestData() 91 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11")); in AddTestData() [all …]
|
/external/chromium_org/chrome/browser/ui/ash/launcher/ |
D | chrome_launcher_controller_unittest.cc | 278 model_.reset(new ash::ShelfModel); in SetUp() 280 model_->AddObserver(model_observer_.get()); in SetUp() 287 new ash::ShelfItemDelegateManager(model_.get()); in SetUp() 367 model_->item_count(), in CreateRunningV2App() 417 model_->RemoveObserver(model_observer_.get()); in TearDown() 420 model_.reset(); in TearDown() 428 model_->Add(app_list); in AddAppListLauncherItem() 434 new ChromeLauncherController(profile(), model_.get())); in InitLauncherController() 470 for (ash::ShelfItems::const_iterator iter(model_->items().begin()); in GetAppLaunchers() 471 iter != model_->items().end(); ++iter) { in GetAppLaunchers() [all …]
|
/external/chromium_org/chrome/browser/ui/views/ |
D | confirm_bubble_views.cc | 17 : model_(model), in ConfirmBubbleViews() 29 views::Label* label = new views::Label(model_->GetMessageText()); in ConfirmBubbleViews() 38 link_ = new views::Link(model_->GetLinkText()); in ConfirmBubbleViews() 50 return model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_OK); in GetDialogButtonLabel() 52 return model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_CANCEL); in GetDialogButtonLabel() 62 return !!(model_->GetButtons() & ConfirmBubbleModel::BUTTON_OK); in IsDialogButtonEnabled() 64 return !!(model_->GetButtons() & ConfirmBubbleModel::BUTTON_CANCEL); in IsDialogButtonEnabled() 76 model_->Cancel(); in Cancel() 81 model_->Accept(); in Accept() 90 return model_->GetTitle(); in GetWindowTitle() [all …]
|
/external/chromium_org/chrome/browser/media/ |
D | native_desktop_media_list_unittest.cc | 158 model_.reset(new NativeDesktopMediaList( in CreateWithDefaultCapturers() 163 model_->SetUpdatePeriod(base::TimeDelta::FromMilliseconds(0)); in CreateWithDefaultCapturers() 182 .WillOnce(CheckListSize(model_.get(), static_cast<int>(i + 1))); in AddWindowsAndVerify() 190 model_->StartUpdating(&observer_); in AddWindowsAndVerify() 195 EXPECT_EQ(model_->GetSource(source_index).id.type, in AddWindowsAndVerify() 197 EXPECT_EQ(model_->GetSource(source_index).id.id, static_cast<int>(i + 1)); in AddWindowsAndVerify() 198 EXPECT_EQ(model_->GetSource(source_index).name, in AddWindowsAndVerify() 212 scoped_ptr<NativeDesktopMediaList> model_; member in __anon3edeff7e0111::DesktopMediaListTest 224 EXPECT_EQ(model_->GetSource(0).id.type, content::DesktopMediaID::TYPE_SCREEN); in TEST_F() 225 EXPECT_EQ(model_->GetSource(0).id.id, 0); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/ |
D | confirm_bubble_controller.mm | 23 model_.reset(model); 44 return base::SysUTF16ToNSString(model_->GetTitle()); 48 return base::SysUTF16ToNSString(model_->GetMessageText()); 52 return base::SysUTF16ToNSString(model_->GetLinkText()); 57 model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_OK)); 62 model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_CANCEL)); 66 return (model_->GetButtons() & ConfirmBubbleModel::BUTTON_OK) ? YES : NO; 70 return (model_->GetButtons() & ConfirmBubbleModel::BUTTON_CANCEL) ? YES : NO; 74 gfx::Image* image = model_->GetIcon(); 80 model_->Accept(); [all …]
|
/external/chromium_org/chrome/browser/diagnostics/ |
D | diagnostics_model_unittest.cc | 24 model_.reset(MakeDiagnosticsModel(cmdline_)); in SetUp() 25 ASSERT_TRUE(model_.get() != NULL); in SetUp() 29 model_.reset(); in TearDown() 32 scoped_ptr<DiagnosticsModel> model_; member in diagnostics::DiagnosticsModelTest 91 int available = model_->GetTestAvailableCount(); in TEST_F() 93 EXPECT_EQ(0, model_->GetTestRunCount()); in TEST_F() 94 EXPECT_EQ(DiagnosticsModel::TEST_NOT_RUN, model_->GetTest(0).GetResult()); in TEST_F() 102 model_->RunAll(&observer); in TEST_F() 105 model_->RecoverAll(&observer); in TEST_F() 107 EXPECT_EQ(DiagnosticsModel::kDiagnosticsTestCount, model_->GetTestRunCount()); in TEST_F()
|