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 <memory> | 5 #include <memory> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/sequenced_task_runner.h" |
14 #include "base/task_scheduler/post_task.h" | 15 #include "base/task_scheduler/post_task.h" |
15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
16 #include "chrome/browser/gcm/gcm_product_util.h" | 17 #include "chrome/browser/gcm/gcm_product_util.h" |
17 #include "chrome/browser/gcm/gcm_profile_service_factory.h" | 18 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 19 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
19 #include "chrome/browser/signin/signin_manager_factory.h" | 20 #include "chrome/browser/signin/signin_manager_factory.h" |
20 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 21 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
21 #include "chrome/common/channel_info.h" | 22 #include "chrome/common/channel_info.h" |
22 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
23 #include "components/gcm_driver/gcm_profile_service.h" | 24 #include "components/gcm_driver/gcm_profile_service.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 OutgoingMessage message; | 243 OutgoingMessage message; |
243 message.id = "1"; | 244 message.id = "1"; |
244 message.data["key1"] = "value1"; | 245 message.data["key1"] = "value1"; |
245 SendAndWaitForCompletion(message); | 246 SendAndWaitForCompletion(message); |
246 | 247 |
247 EXPECT_EQ(message.id, send_message_id()); | 248 EXPECT_EQ(message.id, send_message_id()); |
248 EXPECT_EQ(GCMClient::SUCCESS, send_result()); | 249 EXPECT_EQ(GCMClient::SUCCESS, send_result()); |
249 } | 250 } |
250 | 251 |
251 } // namespace gcm | 252 } // namespace gcm |
OLD | NEW |