| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "components/invalidation/impl/invalidation_service_android.h" | 5 #include "components/invalidation/impl/invalidation_service_android.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" | 7 #include "base/android/context_utils.h" |
| 8 #include "build/build_config.h" |
| 8 #include "components/invalidation/impl/fake_invalidation_handler.h" | 9 #include "components/invalidation/impl/fake_invalidation_handler.h" |
| 9 #include "components/invalidation/impl/invalidation_service_test_template.h" | 10 #include "components/invalidation/impl/invalidation_service_test_template.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 12 namespace invalidation { | 13 namespace invalidation { |
| 13 | 14 |
| 14 #if defined(OS_ANDROID) | 15 #if defined(OS_ANDROID) |
| 15 | 16 |
| 16 class InvalidationServiceAndroidTest : public testing::Test { | 17 class InvalidationServiceAndroidTest : public testing::Test { |
| 17 public: | 18 public: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 ASSERT_FALSE(id1.empty()); | 33 ASSERT_FALSE(id1.empty()); |
| 33 | 34 |
| 34 // If nothing else, the ID should be consistent. | 35 // If nothing else, the ID should be consistent. |
| 35 const std::string id2 = invalidation_service().GetInvalidatorClientId(); | 36 const std::string id2 = invalidation_service().GetInvalidatorClientId(); |
| 36 ASSERT_EQ(id1, id2); | 37 ASSERT_EQ(id1, id2); |
| 37 } | 38 } |
| 38 | 39 |
| 39 #endif | 40 #endif |
| 40 | 41 |
| 41 } // namespace invalidation | 42 } // namespace invalidation |
| OLD | NEW |