| 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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // ARC support host. | 25 // ARC support host. |
| 26 void Open(Profile* profile); | 26 void Open(Profile* profile); |
| 27 | 27 |
| 28 // Emulates clicking Close button. | 28 // Emulates clicking Close button. |
| 29 void Close(); | 29 void Close(); |
| 30 | 30 |
| 31 // Terms of service page emulation. | 31 // Terms of service page emulation. |
| 32 // Emulates clicking Agree button. | 32 // Emulates clicking Agree button. |
| 33 void ClickAgreeButton(); | 33 void ClickAgreeButton(); |
| 34 | 34 |
| 35 bool metrics_mode() const { return metrics_mode_; } | |
| 36 bool backup_and_restore_mode() const { return backup_and_restore_mode_; } | |
| 37 bool location_service_mode() const { return location_service_mode_; } | |
| 38 | |
| 39 // Emulates checking preference box. | 35 // Emulates checking preference box. |
| 40 void set_metrics_mode(bool mode) { metrics_mode_ = mode; } | 36 void set_metrics_mode(bool mode) { metrics_mode_ = mode; } |
| 41 void set_backup_and_restore_mode(bool mode) { | 37 void set_backup_and_restore_mode(bool mode) { |
| 42 backup_and_restore_mode_ = mode; | 38 backup_and_restore_mode_ = mode; |
| 43 } | 39 } |
| 44 void set_location_service_mode(bool mode) { location_service_mode_ = mode; } | 40 void set_location_service_mode(bool mode) { location_service_mode_ = mode; } |
| 45 | 41 |
| 46 // Error page emulation. | 42 // Error page emulation. |
| 47 void ClickRetryButton(); | 43 void ClickRetryButton(); |
| 48 | 44 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 63 bool location_service_mode_ = false; | 59 bool location_service_mode_ = false; |
| 64 | 60 |
| 65 base::WeakPtrFactory<FakeArcSupport> weak_ptr_factory_; | 61 base::WeakPtrFactory<FakeArcSupport> weak_ptr_factory_; |
| 66 | 62 |
| 67 DISALLOW_COPY_AND_ASSIGN(FakeArcSupport); | 63 DISALLOW_COPY_AND_ASSIGN(FakeArcSupport); |
| 68 }; | 64 }; |
| 69 | 65 |
| 70 } // namespace arc | 66 } // namespace arc |
| 71 | 67 |
| 72 #endif // CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ | 68 #endif // CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ |
| OLD | NEW |