tests_fake_hook.mm 916 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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
  3. // found in the LICENSE file.
  4. #import "ios/chrome/app/tests_hook.h"
  5. #if !defined(__has_feature) || !__has_feature(objc_arc)
  6. #error "This file requires ARC support."
  7. #endif
  8. namespace tests_hook {
  9. bool DisableAppGroupAccess() {
  10. return false;
  11. }
  12. bool DisableContentSuggestions() {
  13. return false;
  14. }
  15. bool DisableDiscoverFeed() {
  16. return false;
  17. }
  18. bool DisableFirstRun() {
  19. return false;
  20. }
  21. bool DisableGeolocation() {
  22. return false;
  23. }
  24. bool DisableUpgradeSigninPromo() {
  25. return false;
  26. }
  27. bool DisableUpdateService() {
  28. return false;
  29. }
  30. bool DisableMainThreadFreezeDetection() {
  31. return false;
  32. }
  33. policy::ConfigurationPolicyProvider* GetOverriddenPlatformPolicyProvider() {
  34. return nullptr;
  35. }
  36. void SetUpTestsIfPresent() {}
  37. void RunTestsIfPresent() {}
  38. } // namespace tests_hook