| 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 |
| 35 // Emulates checking preference box. | 39 // Emulates checking preference box. |
| 36 void set_metrics_mode(bool mode) { metrics_mode_ = mode; } | 40 void set_metrics_mode(bool mode) { metrics_mode_ = mode; } |
| 37 void set_backup_and_restore_mode(bool mode) { | 41 void set_backup_and_restore_mode(bool mode) { |
| 38 backup_and_restore_mode_ = mode; | 42 backup_and_restore_mode_ = mode; |
| 39 } | 43 } |
| 40 void set_location_service_mode(bool mode) { location_service_mode_ = mode; } | 44 void set_location_service_mode(bool mode) { location_service_mode_ = mode; } |
| 41 | 45 |
| 42 // Error page emulation. | 46 // Error page emulation. |
| 43 void ClickRetryButton(); | 47 void ClickRetryButton(); |
| 44 | 48 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 59 bool location_service_mode_ = false; | 63 bool location_service_mode_ = false; |
| 60 | 64 |
| 61 base::WeakPtrFactory<FakeArcSupport> weak_ptr_factory_; | 65 base::WeakPtrFactory<FakeArcSupport> weak_ptr_factory_; |
| 62 | 66 |
| 63 DISALLOW_COPY_AND_ASSIGN(FakeArcSupport); | 67 DISALLOW_COPY_AND_ASSIGN(FakeArcSupport); |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 } // namespace arc | 70 } // namespace arc |
| 67 | 71 |
| 68 #endif // CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ |
| OLD | NEW |