| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/sync/test/integration/sync_arc_package_helper.h" | 5 #include "chrome/browser/sync/test/integration/sync_arc_package_helper.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 13 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
| 14 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 14 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
| 15 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 15 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| 16 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 16 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 18 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
| 19 #include "chrome/browser/sync/test/integration/sync_test.h" | 19 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 20 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" | 20 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" |
| 21 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h" | 21 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h" |
| 22 #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service.h" | 22 #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service.h" |
| 23 #include "chromeos/chromeos_switches.h" | 23 #include "chromeos/chromeos_switches.h" |
| 24 #include "components/arc/arc_bridge_service.h" | 24 #include "components/arc/arc_bridge_service.h" |
| 25 #include "components/arc/test/fake_app_instance.h" | 25 #include "components/arc/test/fake_app_instance.h" |
| 26 #include "components/arc/test/fake_arc_bridge_service.h" | |
| 27 | 26 |
| 28 namespace arc { | 27 namespace arc { |
| 29 | 28 |
| 30 namespace { | 29 namespace { |
| 31 | 30 |
| 32 std::string GetTestPackageName(size_t id) { | 31 std::string GetTestPackageName(size_t id) { |
| 33 return "testarcpackage" + base::SizeTToString(id); | 32 return "testarcpackage" + base::SizeTToString(id); |
| 34 } | 33 } |
| 35 | 34 |
| 36 chromeos::FakeChromeUserManager* GetUserManager() { | 35 chromeos::FakeChromeUserManager* GetUserManager() { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 if (package1_info->last_backup_android_id != | 250 if (package1_info->last_backup_android_id != |
| 252 package2_info->last_backup_android_id) | 251 package2_info->last_backup_android_id) |
| 253 return false; | 252 return false; |
| 254 if (package1_info->last_backup_time != package2_info->last_backup_time) | 253 if (package1_info->last_backup_time != package2_info->last_backup_time) |
| 255 return false; | 254 return false; |
| 256 } | 255 } |
| 257 return true; | 256 return true; |
| 258 } | 257 } |
| 259 | 258 |
| 260 } // namespace arc | 259 } // namespace arc |
| OLD | NEW |