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

Side by Side Diff: chrome/browser/notifications/notifications_prefs_cache_unittest.cc

Issue 7810017: Revert 98938 - Migrate Obsolete NotificationsSettings and remove content_settings::NotificationsP... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/notifications_prefs_cache.h" 5 #include "chrome/browser/notifications/notifications_prefs_cache.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "content/browser/browser_thread.h" 8 #include "content/browser/browser_thread.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 cache->SetCacheDefaultContentSetting(CONTENT_SETTING_ALLOW); 54 cache->SetCacheDefaultContentSetting(CONTENT_SETTING_ALLOW);
55 EXPECT_EQ(cache->HasPermission(GURL("http://unkown.com")), 55 EXPECT_EQ(cache->HasPermission(GURL("http://unkown.com")),
56 WebKit::WebNotificationPresenter::PermissionAllowed); 56 WebKit::WebNotificationPresenter::PermissionAllowed);
57 57
58 cache->SetCacheDefaultContentSetting(CONTENT_SETTING_BLOCK); 58 cache->SetCacheDefaultContentSetting(CONTENT_SETTING_BLOCK);
59 EXPECT_EQ(cache->HasPermission(GURL("http://unkown.com")), 59 EXPECT_EQ(cache->HasPermission(GURL("http://unkown.com")),
60 WebKit::WebNotificationPresenter::PermissionDenied); 60 WebKit::WebNotificationPresenter::PermissionDenied);
61 } 61 }
62 } 62 }
63 63
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notifications_prefs_cache.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698