#include "components/push_notification/push_notification_client_manager.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kTestMessage[] = …;
const char kNotificationTypeIdKey[] = …;
const char kNotificationPayloadKey[] = …;
class FakePushNotificationClient
: public push_notification::PushNotificationClient { … };
}
namespace push_notification {
class PushNotificationClientManagerTest : public testing::Test { … };
TEST_F(PushNotificationClientManagerTest, AddClient) { … }
TEST_F(PushNotificationClientManagerTest, AddThenRemoveClient) { … }
TEST_F(PushNotificationClientManagerTest, PassPushNotificationMessageToClient) { … }
TEST_F(PushNotificationClientManagerTest,
PassPushNotificationMessageBeforeAddingClient) { … }
}