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

Unified Diff: chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc

Issue 2248583003: Force release the worker ref count to release the process in BrowserContext::NotifyWillBeDestroyed() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
diff --git a/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc b/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
index 0e6742114b12b3279b1b3e03d452f5db23b59789..58dc1c46d659a73e8d5a9691747ad8a8181412bc 100644
--- a/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
+++ b/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
@@ -10,6 +10,7 @@
#include "base/memory/ptr_util.h"
#include "chrome/browser/chromeos/printing/printer_pref_manager_factory.h"
#include "chrome/test/base/testing_profile.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
@@ -22,6 +23,7 @@ const char kUri[] = "ipps://printer.chromium.org/ipp/print";
} // namespace
TEST(PrinterPrefManagerTest, AddPrinter) {
+ content::TestBrowserThreadBundle thread_bundle;
std::unique_ptr<Profile> profile = base::MakeUnique<TestingProfile>();
PrinterPrefManager* manager =
PrinterPrefManagerFactory::GetForBrowserContext(profile.get());
@@ -34,6 +36,7 @@ TEST(PrinterPrefManagerTest, AddPrinter) {
}
TEST(PrinterPrefManagerTest, UpdatePrinterAssignsId) {
+ content::TestBrowserThreadBundle thread_bundle;
std::unique_ptr<Profile> profile = base::MakeUnique<TestingProfile>();
PrinterPrefManager* manager =
PrinterPrefManagerFactory::GetForBrowserContext(profile.get());
@@ -46,6 +49,7 @@ TEST(PrinterPrefManagerTest, UpdatePrinterAssignsId) {
}
TEST(PrinterPrefManagerTest, UpdatePrinter) {
+ content::TestBrowserThreadBundle thread_bundle;
std::unique_ptr<Profile> profile = base::MakeUnique<TestingProfile>();
PrinterPrefManager* manager =
PrinterPrefManagerFactory::GetForBrowserContext(profile.get());
@@ -62,6 +66,7 @@ TEST(PrinterPrefManagerTest, UpdatePrinter) {
}
TEST(PrinterPrefManagerTest, RemovePrinter) {
+ content::TestBrowserThreadBundle thread_bundle;
std::unique_ptr<Profile> profile = base::MakeUnique<TestingProfile>();
PrinterPrefManager* manager =
PrinterPrefManagerFactory::GetForBrowserContext(profile.get());

Powered by Google App Engine
This is Rietveld 408576698