Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: chrome/browser/push_messaging/push_messaging_service_unittest.cc

Issue 2657823005: Move //c/b/services/gcm/ to //c/b/gcm/ (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/public/browser/push_messaging_service.h" 5 #include "content/public/browser/push_messaging_service.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 16 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
17 #include "chrome/browser/gcm/fake_gcm_profile_service.h"
18 #include "chrome/browser/gcm/gcm_profile_service_factory.h"
17 #include "chrome/browser/permissions/permission_manager.h" 19 #include "chrome/browser/permissions/permission_manager.h"
18 #include "chrome/browser/permissions/permission_manager_factory.h" 20 #include "chrome/browser/permissions/permission_manager_factory.h"
19 #include "chrome/browser/push_messaging/push_messaging_app_identifier.h" 21 #include "chrome/browser/push_messaging/push_messaging_app_identifier.h"
20 #include "chrome/browser/push_messaging/push_messaging_service_factory.h" 22 #include "chrome/browser/push_messaging/push_messaging_service_factory.h"
21 #include "chrome/browser/push_messaging/push_messaging_service_impl.h" 23 #include "chrome/browser/push_messaging/push_messaging_service_impl.h"
22 #include "chrome/browser/services/gcm/fake_gcm_profile_service.h"
23 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
24 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
25 #include "components/content_settings/core/browser/host_content_settings_map.h" 25 #include "components/content_settings/core/browser/host_content_settings_map.h"
26 #include "components/gcm_driver/crypto/gcm_crypto_test_helpers.h" 26 #include "components/gcm_driver/crypto/gcm_crypto_test_helpers.h"
27 #include "components/gcm_driver/fake_gcm_client_factory.h" 27 #include "components/gcm_driver/fake_gcm_client_factory.h"
28 #include "components/gcm_driver/gcm_profile_service.h" 28 #include "components/gcm_driver/gcm_profile_service.h"
29 #include "content/public/common/push_event_payload.h" 29 #include "content/public/common/push_event_payload.h"
30 #include "content/public/common/push_subscription_options.h" 30 #include "content/public/common/push_subscription_options.h"
31 #include "content/public/test/test_browser_thread_bundle.h" 31 #include "content/public/test/test_browser_thread_bundle.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 TEST_F(PushMessagingServiceTest, DifferentEndpoints) { 260 TEST_F(PushMessagingServiceTest, DifferentEndpoints) {
261 PushMessagingServiceImpl* push_service = profile()->GetPushMessagingService(); 261 PushMessagingServiceImpl* push_service = profile()->GetPushMessagingService();
262 ASSERT_TRUE(push_service); 262 ASSERT_TRUE(push_service);
263 263
264 // Verifies that the service returns different endpoints depending on whether 264 // Verifies that the service returns different endpoints depending on whether
265 // support for the standard protocol is requested. 265 // support for the standard protocol is requested.
266 EXPECT_NE(push_service->GetEndpoint(true), push_service->GetEndpoint(false)); 266 EXPECT_NE(push_service->GetEndpoint(true), push_service->GetEndpoint(false));
267 } 267 }
OLDNEW
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | chrome/browser/services/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698