Index: chromeos/components/tether/fake_tether_host_fetcher.h |
diff --git a/chromeos/components/tether/fake_tether_host_fetcher.h b/chromeos/components/tether/fake_tether_host_fetcher.h |
index a75c9905bf09f9e3402819347f5b4eeb7b560330..7a6e93e1caf7fe81b9f0426206a992f75846fade 100644 |
--- a/chromeos/components/tether/fake_tether_host_fetcher.h |
+++ b/chromeos/components/tether/fake_tether_host_fetcher.h |
@@ -20,12 +20,17 @@ class FakeTetherHostFetcher : public TetherHostFetcher { |
public: |
FakeTetherHostFetcher(std::vector<cryptauth::RemoteDevice> tether_hosts, |
bool synchronously_reply_with_results); |
- FakeTetherHostFetcher(bool synchronously_reply_with_results); |
+ explicit FakeTetherHostFetcher(bool synchronously_reply_with_results); |
~FakeTetherHostFetcher() override; |
+ void set_synchronously_reply_with_results( |
+ bool synchronously_reply_with_results) { |
+ synchronously_reply_with_results_ = synchronously_reply_with_results; |
+ } |
+ |
void SetTetherHosts(const std::vector<cryptauth::RemoteDevice> tether_hosts); |
- // If |sychronously_reply_with_results| is false, calling this method will |
+ // If |synchronously_reply_with_results_| is false, calling this method will |
// actually invoke the callbacks. |
void InvokePendingCallbacks(); |