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

Side by Side Diff: chrome/browser/printing/print_preview_dialog_controller_browsertest.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/bind_helpers.h" 5 #include "base/bind_helpers.h"
6 #include "base/location.h" 6 #include "base/location.h"
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // RequestPrintPreviewObserver to get messages first for the purposes of 183 // RequestPrintPreviewObserver to get messages first for the purposes of
184 // this test. 184 // this test.
185 cloned_tab_observer_.reset(new PrintPreviewDialogClonedObserver(first_tab)); 185 cloned_tab_observer_.reset(new PrintPreviewDialogClonedObserver(first_tab));
186 chrome::DuplicateTab(browser()); 186 chrome::DuplicateTab(browser());
187 187
188 initiator_ = browser()->tab_strip_model()->GetActiveWebContents(); 188 initiator_ = browser()->tab_strip_model()->GetActiveWebContents();
189 ASSERT_TRUE(initiator_); 189 ASSERT_TRUE(initiator_);
190 ASSERT_NE(first_tab, initiator_); 190 ASSERT_NE(first_tab, initiator_);
191 191
192 content::PluginService::GetInstance()->Init(); 192 content::PluginService::GetInstance()->Init();
193 content::PluginService::GetInstance()->DisablePluginsDiscoveryForTesting();
194 } 193 }
195 194
196 void TearDownOnMainThread() override { 195 void TearDownOnMainThread() override {
197 cloned_tab_observer_.reset(); 196 cloned_tab_observer_.reset();
198 initiator_ = nullptr; 197 initiator_ = nullptr;
199 } 198 }
200 199
201 RequestPrintPreviewObserver* request_preview_dialog_observer() { 200 RequestPrintPreviewObserver* request_preview_dialog_observer() {
202 return cloned_tab_observer_->request_preview_dialog_observer(); 201 return cloned_tab_observer_->request_preview_dialog_observer();
203 } 202 }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 EXPECT_EQ(task_management::Task::RENDERER, task->GetType()); 375 EXPECT_EQ(task_management::Task::RENDERER, task->GetType());
377 const base::string16 title = task->title(); 376 const base::string16 title = task->title();
378 EXPECT_TRUE(base::StartsWith(title, 377 EXPECT_TRUE(base::StartsWith(title,
379 expected_prefix, 378 expected_prefix,
380 base::CompareCase::INSENSITIVE_ASCII)); 379 base::CompareCase::INSENSITIVE_ASCII));
381 } 380 }
382 381
383 } // namespace 382 } // namespace
384 383
385 #endif // defined(ENABLE_TASK_MANAGER) 384 #endif // defined(ENABLE_TASK_MANAGER)
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/printing/print_preview_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698