| 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 "google_apis/gcm/gcm_client_impl.h" | 5 #include "google_apis/gcm/gcm_client_impl.h" |
| 6 | 6 |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/test/simple_test_clock.h" | 10 #include "base/test/simple_test_clock.h" |
| 11 #include "components/encryptor/os_crypt.h" | 11 #include "components/os_crypt/os_crypt.h" |
| 12 #include "google_apis/gcm/base/mcs_message.h" | 12 #include "google_apis/gcm/base/mcs_message.h" |
| 13 #include "google_apis/gcm/base/mcs_util.h" | 13 #include "google_apis/gcm/base/mcs_util.h" |
| 14 #include "google_apis/gcm/engine/fake_connection_factory.h" | 14 #include "google_apis/gcm/engine/fake_connection_factory.h" |
| 15 #include "google_apis/gcm/engine/fake_connection_handler.h" | 15 #include "google_apis/gcm/engine/fake_connection_handler.h" |
| 16 #include "google_apis/gcm/protocol/android_checkin.pb.h" | 16 #include "google_apis/gcm/protocol/android_checkin.pb.h" |
| 17 #include "google_apis/gcm/protocol/checkin.pb.h" | 17 #include "google_apis/gcm/protocol/checkin.pb.h" |
| 18 #include "google_apis/gcm/protocol/mcs.pb.h" | 18 #include "google_apis/gcm/protocol/mcs.pb.h" |
| 19 #include "net/url_request/test_url_fetcher_factory.h" | 19 #include "net/url_request/test_url_fetcher_factory.h" |
| 20 #include "net/url_request/url_fetcher_delegate.h" | 20 #include "net/url_request/url_fetcher_delegate.h" |
| 21 #include "net/url_request/url_request_test_util.h" | 21 #include "net/url_request/url_request_test_util.h" |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 EXPECT_EQ(CurrentTime(), mcs_client()->last_data_message_stanza().sent()); | 454 EXPECT_EQ(CurrentTime(), mcs_client()->last_data_message_stanza().sent()); |
| 455 EXPECT_EQ("007", mcs_client()->last_data_message_stanza().id()); | 455 EXPECT_EQ("007", mcs_client()->last_data_message_stanza().id()); |
| 456 EXPECT_EQ("gcm@chrome.com", mcs_client()->last_data_message_stanza().from()); | 456 EXPECT_EQ("gcm@chrome.com", mcs_client()->last_data_message_stanza().from()); |
| 457 EXPECT_EQ("project_id", mcs_client()->last_data_message_stanza().to()); | 457 EXPECT_EQ("project_id", mcs_client()->last_data_message_stanza().to()); |
| 458 EXPECT_EQ("key", mcs_client()->last_data_message_stanza().app_data(0).key()); | 458 EXPECT_EQ("key", mcs_client()->last_data_message_stanza().app_data(0).key()); |
| 459 EXPECT_EQ("value", | 459 EXPECT_EQ("value", |
| 460 mcs_client()->last_data_message_stanza().app_data(0).value()); | 460 mcs_client()->last_data_message_stanza().app_data(0).value()); |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace gcm | 463 } // namespace gcm |
| OLD | NEW |