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

Unified Diff: content/browser/device_orientation/provider_unittest.cc

Issue 10837055: Changes ProviderImpl to use a single DataFetcherFactory (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixes comment Created 8 years, 5 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
« no previous file with comments | « content/browser/device_orientation/provider_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_orientation/provider_unittest.cc
diff --git a/content/browser/device_orientation/provider_unittest.cc b/content/browser/device_orientation/provider_unittest.cc
index 1cb74c78485e517ebb5462600329a373337e8aa3..0ef028e70cdc0c810a972454cd46ac25cc3fe6ab 100644
--- a/content/browser/device_orientation/provider_unittest.cc
+++ b/content/browser/device_orientation/provider_unittest.cc
@@ -165,17 +165,10 @@ class DeviceOrientationProviderTest : public testing::Test {
}
// Initialize the test fixture with a ProviderImpl that uses the
- // DataFetcherFactories in the null-terminated factories array.
- void Init(ProviderImpl::DataFetcherFactory* factories) {
- provider_ = new ProviderImpl(factories);
- Provider::SetInstanceForTests(provider_);
- }
-
- // Initialize the test fixture with a ProviderImpl that uses the
// DataFetcherFactory factory.
void Init(ProviderImpl::DataFetcherFactory factory) {
- ProviderImpl::DataFetcherFactory factories[] = { factory, NULL };
- Init(factories);
+ provider_ = new ProviderImpl(factory);
+ Provider::SetInstanceForTests(provider_);
}
protected:
« no previous file with comments | « content/browser/device_orientation/provider_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698