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

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

Issue 156703006: Cleanup: Remove unneeded browser_thread.h includes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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/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"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" 15 #include "third_party/WebKit/public/web/WebNotificationPresenter.h"
17 16
18 class DesktopNotificationServiceTest : public ChromeRenderViewHostTestHarness { 17 class DesktopNotificationServiceTest : public ChromeRenderViewHostTestHarness {
19 protected: 18 protected:
20 virtual void SetUp() { 19 virtual void SetUp() {
21 ChromeRenderViewHostTestHarness::SetUp(); 20 ChromeRenderViewHostTestHarness::SetUp();
22 21
23 // Creates the destop notification service. 22 // Creates the destop notification service.
24 service_ = DesktopNotificationServiceFactory::GetForProfile(profile()); 23 service_ = DesktopNotificationServiceFactory::GetForProfile(profile());
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard( 56 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard(
58 GURL("http://denied2.com")), 57 GURL("http://denied2.com")),
59 settings[3].primary_pattern); 58 settings[3].primary_pattern);
60 EXPECT_EQ(CONTENT_SETTING_BLOCK, 59 EXPECT_EQ(CONTENT_SETTING_BLOCK,
61 settings[3].setting); 60 settings[3].setting);
62 EXPECT_EQ(ContentSettingsPattern::Wildcard(), 61 EXPECT_EQ(ContentSettingsPattern::Wildcard(),
63 settings[4].primary_pattern); 62 settings[4].primary_pattern);
64 EXPECT_EQ(CONTENT_SETTING_ASK, 63 EXPECT_EQ(CONTENT_SETTING_ASK,
65 settings[4].setting); 64 settings[4].setting);
66 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698