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

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

Issue 10830036: Moved the AppNotification system into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq 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 | « chrome/browser/extensions/app_notification.cc ('k') | chrome/browser/extensions/app_notification_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_notification_browsertest.cc
diff --git a/chrome/browser/extensions/app_notification_browsertest.cc b/chrome/browser/extensions/app_notification_browsertest.cc
index 73dd7ea1aa62531cd9ea7cb9d6bce9d97f009f8a..47bcd9bd26571400dbbf371f0fa4200792bea9cc 100644
--- a/chrome/browser/extensions/app_notification_browsertest.cc
+++ b/chrome/browser/extensions/app_notification_browsertest.cc
@@ -18,6 +18,8 @@ using content::BrowserThread;
class AppNotificationTest : public ExtensionBrowserTest {};
+namespace extensions {
+
namespace {
// Our test app will call the getNotificationChannel API using this client id.
@@ -55,7 +57,7 @@ IN_PROC_BROWSER_TEST_F(AppNotificationTest, SaveClientId) {
Interceptor interceptor;
AppNotifyChannelSetup::SetInterceptorForTests(&interceptor);
- const extensions::Extension* app =
+ const Extension* app =
LoadExtension(test_data_dir_.AppendASCII("app_notifications"));
ASSERT_TRUE(app != NULL);
@@ -67,7 +69,9 @@ IN_PROC_BROWSER_TEST_F(AppNotificationTest, SaveClientId) {
EXPECT_TRUE(interceptor.was_called());
ExtensionService* service = browser()->profile()->GetExtensionService();
- extensions::ExtensionPrefs* prefs = service->extension_prefs();
+ ExtensionPrefs* prefs = service->extension_prefs();
std::string saved_id = prefs->GetAppNotificationClientId(app->id());
EXPECT_EQ(kExpectedClientId, saved_id);
}
+
+} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/app_notification.cc ('k') | chrome/browser/extensions/app_notification_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698