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