| 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_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 MOCK_METHOD0(RefreshOptions, void()); | 26 MOCK_METHOD0(RefreshOptions, void()); |
| 27 MOCK_METHOD1(Select, void(size_t index)); | 27 MOCK_METHOD1(Select, void(size_t index)); |
| 28 MOCK_METHOD0(Cancel, void()); | 28 MOCK_METHOD0(Cancel, void()); |
| 29 MOCK_METHOD0(Close, void()); | 29 MOCK_METHOD0(Close, void()); |
| 30 MOCK_CONST_METHOD0(OpenHelpCenterUrl, void()); | 30 MOCK_CONST_METHOD0(OpenHelpCenterUrl, void()); |
| 31 | 31 |
| 32 void OnAdapterPresenceChanged( | 32 void OnAdapterPresenceChanged( |
| 33 content::BluetoothChooser::AdapterPresence presence); | 33 content::BluetoothChooser::AdapterPresence presence); |
| 34 void OnDiscoveryStateChanged(content::BluetoothChooser::DiscoveryState state); | 34 void OnDiscoveryStateChanged(content::BluetoothChooser::DiscoveryState state); |
| 35 | 35 |
| 36 void OptionAdded(const base::string16 option_name); | 36 void OptionAdded(const base::string16& option_name); |
| 37 void OptionRemoved(const base::string16 option_name); | 37 void OptionRemoved(const base::string16& option_name); |
| 38 void OptionUpdated(const base::string16& previous_option_name, |
| 39 const base::string16& new_option_name); |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 void ClearAllOptions(); | 42 void ClearAllOptions(); |
| 41 | 43 |
| 42 std::vector<base::string16> option_names_; | 44 std::vector<base::string16> option_names_; |
| 43 base::string16 no_options_text_; | 45 base::string16 no_options_text_; |
| 44 base::string16 status_text_; | 46 base::string16 status_text_; |
| 45 | 47 |
| 46 DISALLOW_COPY_AND_ASSIGN(MockChooserController); | 48 DISALLOW_COPY_AND_ASSIGN(MockChooserController); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ | 51 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ |
| OLD | NEW |