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 <algorithm> | 5 #include <algorithm> |
6 #include <map> | 6 #include <map> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/string_tokenizer.h" | 13 #include "base/strings/string_tokenizer.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/extensions/state_store.h" | 15 #include "chrome/browser/extensions/state_store.h" |
16 #include "chrome/browser/extensions/test_extension_service.h" | 16 #include "chrome/browser/extensions/test_extension_service.h" |
17 #include "chrome/browser/extensions/test_extension_system.h" | 17 #include "chrome/browser/extensions/test_extension_system.h" |
18 #include "chrome/browser/services/gcm/gcm_client_factory.h" | 18 #include "chrome/browser/services/gcm/gcm_client_factory.h" |
19 #include "chrome/browser/services/gcm/gcm_client_mock.h" | 19 #include "chrome/browser/services/gcm/gcm_client_mock.h" |
20 #include "chrome/browser/services/gcm/gcm_event_router.h" | 20 #include "chrome/browser/services/gcm/gcm_event_router.h" |
21 #include "chrome/browser/services/gcm/gcm_profile_service.h" | 21 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
22 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 22 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
23 #include "chrome/browser/signin/signin_manager_base.h" | 23 #include "chrome/browser/signin/signin_manager_base.h" |
24 #include "chrome/browser/signin/signin_manager_factory.h" | 24 #include "chrome/browser/signin/signin_manager_factory.h" |
25 #include "chrome/browser/ui/browser.h" | 25 #include "chrome/browser/ui/browser.h" |
26 #include "chrome/common/extensions/features/feature_channel.h" | 26 #include "chrome/common/extensions/features/feature_channel.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "chrome/test/base/testing_profile.h" | 28 #include "chrome/test/base/testing_profile.h" |
29 #include "components/encryptor/os_crypt.h" | 29 #include "components/os_crypt/os_crypt.h" |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
31 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
32 #include "extensions/browser/event_router.h" | 32 #include "extensions/browser/event_router.h" |
33 #include "extensions/browser/extension_prefs.h" | 33 #include "extensions/browser/extension_prefs.h" |
34 #include "extensions/common/extension.h" | 34 #include "extensions/common/extension.h" |
35 #include "extensions/common/manifest_constants.h" | 35 #include "extensions/common/manifest_constants.h" |
36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
37 | 37 |
38 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
39 #include "chrome/browser/chromeos/login/user_manager.h" | 39 #include "chrome/browser/chromeos/login/user_manager.h" |
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 consumer()->gcm_event_router()->clear_results(); | 1506 consumer()->gcm_event_router()->clear_results(); |
1507 WaitUntilCompleted(); | 1507 WaitUntilCompleted(); |
1508 | 1508 |
1509 EXPECT_EQ(FakeGCMEventRouter::MESSAGE_EVENT, | 1509 EXPECT_EQ(FakeGCMEventRouter::MESSAGE_EVENT, |
1510 consumer()->gcm_event_router()->received_event()); | 1510 consumer()->gcm_event_router()->received_event()); |
1511 EXPECT_TRUE( | 1511 EXPECT_TRUE( |
1512 in_message5.data == consumer()->gcm_event_router()->message().data); | 1512 in_message5.data == consumer()->gcm_event_router()->message().data); |
1513 } | 1513 } |
1514 | 1514 |
1515 } // namespace gcm | 1515 } // namespace gcm |
OLD | NEW |