summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search_engines/template_url_model_test_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/search_engines/template_url_model_test_util.cc')
-rw-r--r--chrome/browser/search_engines/template_url_model_test_util.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/search_engines/template_url_model_test_util.cc b/chrome/browser/search_engines/template_url_model_test_util.cc
index 52a6c91..e6ebc8d 100644
--- a/chrome/browser/search_engines/template_url_model_test_util.cc
+++ b/chrome/browser/search_engines/template_url_model_test_util.cc
@@ -167,9 +167,8 @@ void TemplateURLModelTestUtil::OnTemplateURLModelChanged() {
changed_count_++;
}
-void TemplateURLModelTestUtil::VerifyObserverCount(int expected_changed_count) {
- ASSERT_EQ(expected_changed_count, changed_count_);
- changed_count_ = 0;
+int TemplateURLModelTestUtil::GetObserverCount() {
+ return changed_count_;
}
void TemplateURLModelTestUtil::ResetObserverCount() {
@@ -188,7 +187,8 @@ void TemplateURLModelTestUtil::VerifyLoad() {
ASSERT_FALSE(model()->loaded());
model()->Load();
BlockTillServiceProcessesRequests();
- VerifyObserverCount(1);
+ EXPECT_EQ(1, GetObserverCount());
+ ResetObserverCount();
}
void TemplateURLModelTestUtil::ChangeModelToLoadState() {