| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |