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

Unified Diff: chrome/browser/extensions/apps_promo_unittest.cc

Issue 7744039: Switch ChromeTestSuite to the same convention as ContentTestSuite: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixing Created 9 years, 4 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/apps_promo_unittest.cc
diff --git a/chrome/browser/extensions/apps_promo_unittest.cc b/chrome/browser/extensions/apps_promo_unittest.cc
index accfd5b5e6130509cad5371a1141b28f2880dc6f..607da43b01086ab9b6552b488d0cdf2565235e4e 100644
--- a/chrome/browser/extensions/apps_promo_unittest.cc
+++ b/chrome/browser/extensions/apps_promo_unittest.cc
@@ -3,12 +3,13 @@
// found in the LICENSE file.
#include "base/logging.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/apps_promo.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/ui/webui/ntp/shown_sections_handler.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/pref_names.h"
-#include "chrome/test/base/testing_browser_process_test.h"
+#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_pref_service.h"
#include "googleurl/src/gurl.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -42,7 +43,7 @@ void ExpectAppsPromoHidden(PrefService* prefs) {
} // namespace
-class ExtensionAppsPromo : public TestingBrowserProcessTest {
+class ExtensionAppsPromo : public testing::Test {
public:
TestingPrefService* prefs() { return &prefs_; }
AppsPromo* apps_promo() { return &apps_promo_; }
@@ -60,7 +61,7 @@ class ExtensionAppsPromo : public TestingBrowserProcessTest {
};
ExtensionAppsPromo::ExtensionAppsPromo()
- : local_state_(testing_browser_process_.get()),
+ : local_state_(static_cast<TestingBrowserProcess*>(g_browser_process)),
apps_promo_(&prefs_) {
}

Powered by Google App Engine
This is Rietveld 408576698