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

Side by Side Diff: content/renderer/active_notification_tracker_unittest.cc

Issue 11225045: Move a bunch of content\common code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 2 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
« no previous file with comments | « content/renderer/active_notification_tracker.cc ('k') | content/renderer/paint_aggregator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/renderer/active_notification_tracker.h" 5 #include "content/renderer/active_notification_tracker.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 namespace content {
9
8 TEST(ActiveNotificationTrackerTest, TestLookupAndClear) { 10 TEST(ActiveNotificationTrackerTest, TestLookupAndClear) {
9 ActiveNotificationTracker tracker; 11 ActiveNotificationTracker tracker;
10 12
11 WebKit::WebNotification notification1; 13 WebKit::WebNotification notification1;
12 int id1 = tracker.RegisterNotification(notification1); 14 int id1 = tracker.RegisterNotification(notification1);
13 15
14 WebKit::WebNotification notification2; 16 WebKit::WebNotification notification2;
15 int id2 = tracker.RegisterNotification(notification2); 17 int id2 = tracker.RegisterNotification(notification2);
16 18
17 WebKit::WebNotification result; 19 WebKit::WebNotification result;
18 tracker.GetNotification(id1, &result); 20 tracker.GetNotification(id1, &result);
19 EXPECT_TRUE(result == notification1); 21 EXPECT_TRUE(result == notification1);
20 22
21 tracker.GetNotification(id2, &result); 23 tracker.GetNotification(id2, &result);
22 EXPECT_TRUE(result == notification2); 24 EXPECT_TRUE(result == notification2);
23 25
24 tracker.Clear(); 26 tracker.Clear();
25 } 27 }
28
29 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/active_notification_tracker.cc ('k') | content/renderer/paint_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698