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

Unified Diff: experimental/c_salt/notification_test.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 | « experimental/c_salt/notification_ptrs.h ('k') | experimental/c_salt/npapi/browser_3d_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/c_salt/notification_test.cc
diff --git a/experimental/c_salt/notification_test.cc b/experimental/c_salt/notification_test.cc
deleted file mode 100644
index 1dfa340e061de8ae9872c8831a932a79ec7718f4..0000000000000000000000000000000000000000
--- a/experimental/c_salt/notification_test.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2010 The Ginsu 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 "c_salt/notification.h"
-#include "gmock/gmock.h"
-#include "gtest/gtest.h"
-
-namespace {
-const char* const kNotificationName = "notification";
-const char* const kOtherNotificationName = "other notification";
-const char* const kPublisher1 = "publisher1";
-const int kIntValue42 = 42;
-} // namespace
-
-using c_salt::Notification;
-
-class NotificationTest : public ::testing::Test {
- protected:
- virtual void SetUp() {}
-};
-
-// Verify that the default ctor caches the name,and produces an anonymous
-// notification with an empty payload.
-TEST_F(NotificationTest, DefaultCtor) {
- Notification note(kNotificationName);
- EXPECT_EQ(kNotificationName, note.name());
- EXPECT_TRUE(note.data()->empty());
- EXPECT_EQ("", note.publisher_name());
-}
-
-TEST_F(NotificationTest, IntCtor) {
- Notification::SharedNotificationValue
- int_value(new Notification::NotificationValue(kIntValue42));
- Notification note(kNotificationName, int_value, kPublisher1);
- EXPECT_FALSE(note.data()->empty());
- EXPECT_EQ(kIntValue42, boost::any_cast<int>(*note.data()));
-}
« no previous file with comments | « experimental/c_salt/notification_ptrs.h ('k') | experimental/c_salt/npapi/browser_3d_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698