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

Unified Diff: chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc

Issue 183803026: Clean up InvalidationService test infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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/extensions/api/push_messaging/push_messaging_apitest.cc
diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc b/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
index 01cc1a4a637e3caa42c89614a2befdf54ea2579f..9e80fd8e47114e95e8dd88d210754d5cee59675b 100644
--- a/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
@@ -22,9 +22,9 @@
#include "sync/notifier/fake_invalidator.h"
#include "testing/gmock/include/gmock/gmock.h"
-using ::testing::_;
using ::testing::SaveArg;
using ::testing::StrictMock;
+using ::testing::_;
using invalidation::InvalidationServiceFactory;
@@ -66,8 +66,8 @@ class PushMessagingApiTest : public ExtensionApiTest {
}
virtual void SetUp() OVERRIDE {
- InvalidationServiceFactory::GetInstance()->
- SetBuildOnlyFakeInvalidatorsForTest(true);
+ InvalidationServiceFactory::GetInstance()->RegisterTestingFactory(
+ invalidation::FakeInvalidationService::Build);
ExtensionApiTest::SetUp();
}
« no previous file with comments | « no previous file | chrome/browser/invalidation/fake_invalidation_service.h » ('j') | chrome/chrome_tests_unit.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698