12345678910111213141516171819202122232425262728293031 |
- // Copyright 2022 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #include "ash/system/network/fake_network_list_mobile_header_view.h"
- #include "ash/system/network/network_list_mobile_header_view.h"
- #include "ash/system/network/network_list_network_header_view.h"
- namespace ash {
- FakeNetworkListMobileHeaderView::FakeNetworkListMobileHeaderView(
- NetworkListNetworkHeaderView::Delegate* delegate)
- : NetworkListMobileHeaderView(delegate) {}
- FakeNetworkListMobileHeaderView::~FakeNetworkListMobileHeaderView() = default;
- void FakeNetworkListMobileHeaderView::SetToggleState(bool enabled, bool is_on) {
- is_toggle_enabled_ = enabled;
- is_toggle_on_ = is_on;
- set_toggle_state_count_++;
- };
- void FakeNetworkListMobileHeaderView::SetAddESimButtonState(bool enabled,
- bool visible) {
- is_add_esim_enabled_ = enabled;
- is_add_esim_visible_ = visible;
- set_add_esim_button_state_count_++;
- };
- } // namespace ash
|