fake_network_list_mobile_header_view.cc 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2022 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. #include "ash/system/network/fake_network_list_mobile_header_view.h"
  5. #include "ash/system/network/network_list_mobile_header_view.h"
  6. #include "ash/system/network/network_list_network_header_view.h"
  7. namespace ash {
  8. FakeNetworkListMobileHeaderView::FakeNetworkListMobileHeaderView(
  9. NetworkListNetworkHeaderView::Delegate* delegate)
  10. : NetworkListMobileHeaderView(delegate) {}
  11. FakeNetworkListMobileHeaderView::~FakeNetworkListMobileHeaderView() = default;
  12. void FakeNetworkListMobileHeaderView::SetToggleState(bool enabled, bool is_on) {
  13. is_toggle_enabled_ = enabled;
  14. is_toggle_on_ = is_on;
  15. set_toggle_state_count_++;
  16. };
  17. void FakeNetworkListMobileHeaderView::SetAddESimButtonState(bool enabled,
  18. bool visible) {
  19. is_add_esim_enabled_ = enabled;
  20. is_add_esim_visible_ = visible;
  21. set_add_esim_button_state_count_++;
  22. };
  23. } // namespace ash