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

Unified Diff: chrome/common/notification_service_unittest.cc

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/net/url_request_intercept_job.cc ('k') | chrome/common/os_exchange_data_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/notification_service_unittest.cc
===================================================================
--- chrome/common/notification_service_unittest.cc (revision 11111)
+++ chrome/common/notification_service_unittest.cc (working copy)
@@ -141,8 +141,9 @@
EXPECT_EQ(1, idle_test_source.notification_count());
// Removing an observer that isn't there is a no-op, this should be fine.
- service->RemoveObserver(
- &all_types_all_sources, NotificationType::ALL, NotificationService::AllSources());
+ service->RemoveObserver(&all_types_all_sources,
+ NotificationType::ALL,
+ NotificationService::AllSources());
}
TEST(NotificationServiceTest, MultipleRegistration) {
@@ -152,26 +153,30 @@
NotificationService* service = NotificationService::current();
- service->AddObserver(
- &idle_test_source, NotificationType::IDLE, Source<TestSource>(&test_source));
- service->AddObserver(
- &idle_test_source, NotificationType::ALL, Source<TestSource>(&test_source));
+ service->AddObserver(&idle_test_source,
+ NotificationType::IDLE,
+ Source<TestSource>(&test_source));
+ service->AddObserver(&idle_test_source,
+ NotificationType::ALL,
+ Source<TestSource>(&test_source));
service->Notify(NotificationType::IDLE,
Source<TestSource>(&test_source),
NotificationService::NoDetails());
EXPECT_EQ(2, idle_test_source.notification_count());
- service->RemoveObserver(
- &idle_test_source, NotificationType::IDLE, Source<TestSource>(&test_source));
+ service->RemoveObserver(&idle_test_source,
+ NotificationType::IDLE,
+ Source<TestSource>(&test_source));
service->Notify(NotificationType::IDLE,
Source<TestSource>(&test_source),
NotificationService::NoDetails());
EXPECT_EQ(3, idle_test_source.notification_count());
- service->RemoveObserver(
- &idle_test_source, NotificationType::ALL, Source<TestSource>(&test_source));
+ service->RemoveObserver(&idle_test_source,
+ NotificationType::ALL,
+ Source<TestSource>(&test_source));
service->Notify(NotificationType::IDLE,
Source<TestSource>(&test_source),
« no previous file with comments | « chrome/common/net/url_request_intercept_job.cc ('k') | chrome/common/os_exchange_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698