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

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

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
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/desktop_notification_service.h" 5 #include "chrome/browser/notifications/desktop_notification_service.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "base/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "chrome/browser/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
11 #include "chrome/browser/notifications/notifications_prefs_cache.h" 11 #include "chrome/browser/notifications/notifications_prefs_cache.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/prefs/scoped_pref_update.h" 13 #include "chrome/browser/prefs/scoped_pref_update.h"
14 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 14 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "chrome/test/testing_profile.h" 16 #include "chrome/test/testing_profile.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPresenter.h" 19 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPresenter.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 EXPECT_EQ(WebKit::WebNotificationPresenter::PermissionDenied, 240 EXPECT_EQ(WebKit::WebNotificationPresenter::PermissionDenied,
241 proxy_->CacheHasPermission(cache_, denied_url)); 241 proxy_->CacheHasPermission(cache_, denied_url));
242 242
243 service_->ResetBlockedOrigin(denied_url); 243 service_->ResetBlockedOrigin(denied_url);
244 244
245 EXPECT_EQ(WebKit::WebNotificationPresenter::PermissionNotAllowed, 245 EXPECT_EQ(WebKit::WebNotificationPresenter::PermissionNotAllowed,
246 proxy_->CacheHasPermission(cache_, denied_url)); 246 proxy_->CacheHasPermission(cache_, denied_url));
247 } 247 }
248 248
249 } // namespace 249 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/net/predictor_api.cc ('k') | chrome/browser/password_manager/native_backend_gnome_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698