diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-17 00:26:18 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-17 00:26:18 +0000 |
commit | 797c355020734dc32ffa57f54d032afa20f018c8 (patch) | |
tree | 8a3a745aea8a8b7bf81c049f387eaa6321bf9bbc /content/renderer/active_notification_tracker_unittest.cc | |
parent | f6179ec31d0d530bd2ed66808bb24b601d60d453 (diff) | |
download | chromium_src-797c355020734dc32ffa57f54d032afa20f018c8.zip chromium_src-797c355020734dc32ffa57f54d032afa20f018c8.tar.gz chromium_src-797c355020734dc32ffa57f54d032afa20f018c8.tar.bz2 |
Move a bunch of files from chrome\common to content\common.
TBR=avi
Review URL: http://codereview.chromium.org/6677096
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/active_notification_tracker_unittest.cc')
-rw-r--r-- | content/renderer/active_notification_tracker_unittest.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/content/renderer/active_notification_tracker_unittest.cc b/content/renderer/active_notification_tracker_unittest.cc new file mode 100644 index 0000000..18a7850 --- /dev/null +++ b/content/renderer/active_notification_tracker_unittest.cc @@ -0,0 +1,25 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/renderer/active_notification_tracker.h" +#include "testing/gtest/include/gtest/gtest.h" + +TEST(ActiveNotificationTrackerTest, TestLookupAndClear) { + ActiveNotificationTracker tracker; + + WebKit::WebNotification notification1; + int id1 = tracker.RegisterNotification(notification1); + + WebKit::WebNotification notification2; + int id2 = tracker.RegisterNotification(notification2); + + WebKit::WebNotification result; + tracker.GetNotification(id1, &result); + EXPECT_TRUE(result == notification1); + + tracker.GetNotification(id2, &result); + EXPECT_TRUE(result == notification2); + + tracker.Clear(); +} |