| Index: chromeos/cert_loader_unittest.cc
|
| diff --git a/chromeos/cert_loader_unittest.cc b/chromeos/cert_loader_unittest.cc
|
| index 2f28861acd272016545c4accbf22c4feea105e03..cf7ef379e167257f7828b9620f524a2e7e0ba72b 100644
|
| --- a/chromeos/cert_loader_unittest.cc
|
| +++ b/chromeos/cert_loader_unittest.cc
|
| @@ -39,6 +39,8 @@ void FailOnPrivateSlotCallback(crypto::ScopedPK11Slot slot) {
|
| << "though the private slot had been initialized.";
|
| }
|
|
|
| +} // namespace
|
| +
|
| class CertLoaderTest : public testing::Test,
|
| public CertLoader::Observer {
|
| public:
|
| @@ -57,7 +59,6 @@ class CertLoaderTest : public testing::Test,
|
| CertLoader::Initialize();
|
| cert_loader_ = CertLoader::Get();
|
| cert_loader_->AddObserver(this);
|
| - cert_loader_->SetSlowTaskRunnerForTest(message_loop_.message_loop_proxy());
|
| }
|
|
|
| virtual void TearDown() {
|
| @@ -108,6 +109,7 @@ class CertLoaderTest : public testing::Test,
|
| database->reset(new net::NSSCertDatabaseChromeOS(
|
| crypto::GetPublicSlotForChromeOSUser(user->username_hash()),
|
| private_slot.Pass()));
|
| + (*database)->SetSlowTaskRunnerForTest(message_loop_.message_loop_proxy());
|
| }
|
|
|
| int GetDbPrivateSlotId(net::NSSCertDatabase* db) {
|
| @@ -304,5 +306,4 @@ TEST_F(CertLoaderTest, UpdatedOnCACertTrustChange) {
|
| EXPECT_EQ(1U, GetAndResetCertificatesLoadedEventsCount());
|
| }
|
|
|
| -} // namespace
|
| } // namespace chromeos
|
|
|