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

Side by Side Diff: chrome/browser/extensions/extension_gcm_app_handler_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 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 "chrome/browser/extensions/extension_gcm_app_handler.h" 5 #include "chrome/browser/extensions/extension_gcm_app_handler.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ptr_util.h" 19 #include "base/memory/ptr_util.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/run_loop.h" 22 #include "base/run_loop.h"
23 #include "base/values.h" 23 #include "base/values.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "chrome/browser/chrome_notification_types.h" 25 #include "chrome/browser/chrome_notification_types.h"
26 #include "chrome/browser/extensions/api/gcm/gcm_api.h" 26 #include "chrome/browser/extensions/api/gcm/gcm_api.h"
27 #include "chrome/browser/extensions/extension_service.h" 27 #include "chrome/browser/extensions/extension_service.h"
28 #include "chrome/browser/extensions/test_extension_service.h" 28 #include "chrome/browser/extensions/test_extension_service.h"
29 #include "chrome/browser/extensions/test_extension_system.h" 29 #include "chrome/browser/extensions/test_extension_system.h"
30 #include "chrome/browser/gcm/gcm_product_util.h"
31 #include "chrome/browser/gcm/gcm_profile_service_factory.h"
30 #include "chrome/browser/profiles/profile.h" 32 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/services/gcm/gcm_product_util.h"
32 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
33 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 33 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
34 #include "chrome/browser/signin/signin_manager_factory.h" 34 #include "chrome/browser/signin/signin_manager_factory.h"
35 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 35 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
36 #include "chrome/common/channel_info.h" 36 #include "chrome/common/channel_info.h"
37 #include "chrome/common/chrome_paths.h" 37 #include "chrome/common/chrome_paths.h"
38 #include "chrome/test/base/testing_profile.h" 38 #include "chrome/test/base/testing_profile.h"
39 #include "components/gcm_driver/fake_gcm_app_handler.h" 39 #include "components/gcm_driver/fake_gcm_app_handler.h"
40 #include "components/gcm_driver/fake_gcm_client.h" 40 #include "components/gcm_driver/fake_gcm_client.h"
41 #include "components/gcm_driver/fake_gcm_client_factory.h" 41 #include "components/gcm_driver/fake_gcm_client_factory.h"
42 #include "components/gcm_driver/gcm_client_factory.h" 42 #include "components/gcm_driver/gcm_client_factory.h"
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 483
484 // App handler is removed when the extension is updated to the version that 484 // App handler is removed when the extension is updated to the version that
485 // has GCM permission removed. 485 // has GCM permission removed.
486 UpdateExtension(extension.get(), "good2.crx"); 486 UpdateExtension(extension.get(), "good2.crx");
487 waiter()->PumpUILoop(); 487 waiter()->PumpUILoop();
488 EXPECT_TRUE(gcm_app_handler()->app_handler_count_drop_to_zero()); 488 EXPECT_TRUE(gcm_app_handler()->app_handler_count_drop_to_zero());
489 EXPECT_FALSE(HasAppHandlers(extension->id())); 489 EXPECT_FALSE(HasAppHandlers(extension->id()));
490 } 490 }
491 491
492 } // namespace extensions 492 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_gcm_app_handler.cc ('k') | chrome/browser/extensions/service_worker_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698