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

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

Issue 19602003: Use a direct include of the message_loop header in chrome/browser/, part 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 11 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
12 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 12 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "content/public/test/test_browser_thread.h" 14 #include "content/public/test/test_browser_thread.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" 16 #include "third_party/WebKit/public/web/WebNotificationPresenter.h"
17 17
18 class DesktopNotificationServiceTest : public ChromeRenderViewHostTestHarness { 18 class DesktopNotificationServiceTest : public ChromeRenderViewHostTestHarness {
19 protected: 19 protected:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard( 94 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard(
95 GURL("http://denied2.com")), 95 GURL("http://denied2.com")),
96 settings[3].primary_pattern); 96 settings[3].primary_pattern);
97 EXPECT_EQ(CONTENT_SETTING_BLOCK, 97 EXPECT_EQ(CONTENT_SETTING_BLOCK,
98 settings[3].setting); 98 settings[3].setting);
99 EXPECT_EQ(ContentSettingsPattern::Wildcard(), 99 EXPECT_EQ(ContentSettingsPattern::Wildcard(),
100 settings[4].primary_pattern); 100 settings[4].primary_pattern);
101 EXPECT_EQ(CONTENT_SETTING_ASK, 101 EXPECT_EQ(CONTENT_SETTING_ASK,
102 settings[4].setting); 102 settings[4].setting);
103 } 103 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.h ('k') | chrome/browser/notifications/desktop_notifications_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698