| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/services/gcm/push_messaging_application_id.h" | 5 #include "chrome/browser/services/gcm/push_messaging_application_id.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace gcm { | 8 namespace gcm { |
| 9 | 9 |
| 10 class PushMessagingApplicationIdTest : public testing::Test { | 10 class PushMessagingApplicationIdTest : public testing::Test { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 TEST_F(PushMessagingApplicationIdTest, UniqueGuids) { | 34 TEST_F(PushMessagingApplicationIdTest, UniqueGuids) { |
| 35 EXPECT_NE(gcm::PushMessagingApplicationId::Generate( | 35 EXPECT_NE(gcm::PushMessagingApplicationId::Generate( |
| 36 GURL("https://www.example.com/"), 1).app_id_guid(), | 36 GURL("https://www.example.com/"), 1).app_id_guid(), |
| 37 gcm::PushMessagingApplicationId::Generate( | 37 gcm::PushMessagingApplicationId::Generate( |
| 38 GURL("https://www.example.com/"), 1).app_id_guid()); | 38 GURL("https://www.example.com/"), 1).app_id_guid()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace gcm | 41 } // namespace gcm |
| OLD | NEW |