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

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: 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
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..66e62047397fafdfe1189bfbb61f02b4a62278ee 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);
hans 2012/08/01 19:08:47 here too i think it's just the value that should b
aousterh 2012/08/02 10:10:38 Done.
+ Provider::SetInstanceForTests(provider_);
}
protected:

Powered by Google App Engine
This is Rietveld 408576698