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 "components/gcm_driver/gcm_driver_desktop.h" | 5 #include "components/gcm_driver/gcm_driver_desktop.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
16 #include "base/test/test_simple_task_runner.h" | 17 #include "base/test/test_simple_task_runner.h" |
17 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "components/gcm_driver/crypto/gcm_encryption_provider.h" | 20 #include "components/gcm_driver/crypto/gcm_encryption_provider.h" |
20 #include "components/gcm_driver/fake_gcm_app_handler.h" | 21 #include "components/gcm_driver/fake_gcm_app_handler.h" |
21 #include "components/gcm_driver/fake_gcm_client.h" | 22 #include "components/gcm_driver/fake_gcm_client.h" |
22 #include "components/gcm_driver/fake_gcm_client_factory.h" | 23 #include "components/gcm_driver/fake_gcm_client_factory.h" |
23 #include "components/gcm_driver/gcm_app_handler.h" | 24 #include "components/gcm_driver/gcm_app_handler.h" |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 PumpUILoop(); | 1379 PumpUILoop(); |
1379 EXPECT_EQ(GCMClient::UNKNOWN_ERROR, unregistration_result()); | 1380 EXPECT_EQ(GCMClient::UNKNOWN_ERROR, unregistration_result()); |
1380 | 1381 |
1381 // DeleteToken operation will be invoked after GCMClient becomes ready. | 1382 // DeleteToken operation will be invoked after GCMClient becomes ready. |
1382 GetGCMClient()->PerformDelayedStart(); | 1383 GetGCMClient()->PerformDelayedStart(); |
1383 WaitForAsyncOperation(); | 1384 WaitForAsyncOperation(); |
1384 EXPECT_EQ(GCMClient::SUCCESS, unregistration_result()); | 1385 EXPECT_EQ(GCMClient::SUCCESS, unregistration_result()); |
1385 } | 1386 } |
1386 | 1387 |
1387 } // namespace gcm | 1388 } // namespace gcm |
OLD | NEW |