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

Unified Diff: chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc

Issue 1086733002: Ensure tests have an active task runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc
diff --git a/chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc b/chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc
index 79695897ac8703bd7eca1f3c18dac134b368f6c1..beaf843eb41a1b80c6f4e193eb45764e82f4ccdb 100644
--- a/chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc
+++ b/chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
+#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -23,6 +24,7 @@
using testing::Mock;
using testing::ReturnRef;
using testing::Sequence;
+using testing::_;
namespace chromeos {
@@ -68,6 +70,9 @@ SAMLOfflineSigninLimiterTest::~SAMLOfflineSigninLimiterTest() {
DestroyLimiter();
Mock::VerifyAndClearExpectations(user_manager_);
EXPECT_CALL(*user_manager_, Shutdown()).Times(1);
+ EXPECT_CALL(*user_manager_, RemoveSessionStateObserver(_)).Times(1);
+ profile_.reset();
+ TestingBrowserProcess::DeleteInstance();
}
void SAMLOfflineSigninLimiterTest::DestroyLimiter() {

Powered by Google App Engine
This is Rietveld 408576698