| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "components/invalidation/push_client_channel.h" |
| 8 #include "jingle/notifier/listener/fake_push_client.h" | 9 #include "jingle/notifier/listener/fake_push_client.h" |
| 9 #include "jingle/notifier/listener/notification_defines.h" | 10 #include "jingle/notifier/listener/notification_defines.h" |
| 10 #include "sync/notifier/push_client_channel.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace syncer { | 13 namespace syncer { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 class PushClientChannelTest | 16 class PushClientChannelTest |
| 17 : public ::testing::Test, | 17 : public ::testing::Test, |
| 18 public SyncNetworkChannel::Observer { | 18 public SyncNetworkChannel::Observer { |
| 19 protected: | 19 protected: |
| 20 PushClientChannelTest() | 20 PushClientChannelTest() |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 &service_context, | 243 &service_context, |
| 244 &scheduling_hash)); | 244 &scheduling_hash)); |
| 245 EXPECT_EQ(kMessage, message); | 245 EXPECT_EQ(kMessage, message); |
| 246 EXPECT_EQ(kServiceContext, service_context); | 246 EXPECT_EQ(kServiceContext, service_context); |
| 247 EXPECT_EQ(kSchedulingHash, scheduling_hash); | 247 EXPECT_EQ(kSchedulingHash, scheduling_hash); |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 } // namespace | 251 } // namespace |
| 252 } // namespace syncer | 252 } // namespace syncer |
| OLD | NEW |