| OLD | NEW |
| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h" | 30 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h" |
| 31 #include "chrome/browser/ui/app_list/arc/arc_app_model_builder.h" | 31 #include "chrome/browser/ui/app_list/arc/arc_app_model_builder.h" |
| 32 #include "chrome/browser/ui/app_list/arc/arc_app_test.h" | 32 #include "chrome/browser/ui/app_list/arc/arc_app_test.h" |
| 33 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" | 33 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" |
| 34 #include "chrome/browser/ui/app_list/arc/arc_default_app_list.h" | 34 #include "chrome/browser/ui/app_list/arc/arc_default_app_list.h" |
| 35 #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service_factory.h" | 35 #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service_factory.h" |
| 36 #include "chrome/browser/ui/app_list/test/test_app_list_controller_delegate.h" | 36 #include "chrome/browser/ui/app_list/test/test_app_list_controller_delegate.h" |
| 37 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" | 37 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" |
| 38 #include "chrome/test/base/testing_profile.h" | 38 #include "chrome/test/base/testing_profile.h" |
| 39 #include "components/arc/test/fake_app_instance.h" | 39 #include "components/arc/test/fake_app_instance.h" |
| 40 #include "components/arc/test/fake_arc_bridge_service.h" | |
| 41 #include "content/public/browser/browser_thread.h" | 40 #include "content/public/browser/browser_thread.h" |
| 42 #include "extensions/browser/extension_system.h" | 41 #include "extensions/browser/extension_system.h" |
| 43 #include "extensions/common/extension.h" | 42 #include "extensions/common/extension.h" |
| 44 #include "extensions/common/manifest_constants.h" | 43 #include "extensions/common/manifest_constants.h" |
| 45 #include "testing/gtest/include/gtest/gtest.h" | 44 #include "testing/gtest/include/gtest/gtest.h" |
| 46 #include "ui/app_list/app_list_constants.h" | 45 #include "ui/app_list/app_list_constants.h" |
| 47 #include "ui/app_list/app_list_model.h" | 46 #include "ui/app_list/app_list_model.h" |
| 48 #include "ui/events/event_constants.h" | 47 #include "ui/events/event_constants.h" |
| 49 #include "ui/gfx/geometry/safe_integer_conversions.h" | 48 #include "ui/gfx/geometry/safe_integer_conversions.h" |
| 50 #include "ui/gfx/image/image_skia.h" | 49 #include "ui/gfx/image/image_skia.h" |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 const ArcAppListPrefs* const prefs = ArcAppListPrefs::Get(profile_.get()); | 1292 const ArcAppListPrefs* const prefs = ArcAppListPrefs::Get(profile_.get()); |
| 1294 ASSERT_TRUE(prefs); | 1293 ASSERT_TRUE(prefs); |
| 1295 | 1294 |
| 1296 // There is no default app for managed users except Play Store | 1295 // There is no default app for managed users except Play Store |
| 1297 for (const auto& app : fake_default_apps()) { | 1296 for (const auto& app : fake_default_apps()) { |
| 1298 const std::string app_id = ArcAppTest::GetAppId(app); | 1297 const std::string app_id = ArcAppTest::GetAppId(app); |
| 1299 EXPECT_FALSE(prefs->IsRegistered(app_id)); | 1298 EXPECT_FALSE(prefs->IsRegistered(app_id)); |
| 1300 EXPECT_FALSE(prefs->GetApp(app_id)); | 1299 EXPECT_FALSE(prefs->GetApp(app_id)); |
| 1301 } | 1300 } |
| 1302 } | 1301 } |
| OLD | NEW |