forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chromeos: Introduce ash::TestSystemTrayClient for ash_unittests
This allows some OpenUiDelegate classes to be eliminated from ash system tray code. AshTestBase now provides a shared SystemTrayClient implementation for tests. Long ago we had a similar class "TestSystemTrayDelegate" that did something similar. Bug: 970889 Test: ash_unittests Change-Id: I0035dccfe343df4ef8504cb0113684539eae2ef1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649056 Reviewed-by: Ryan Hansberry <hansberry@chromium.org> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#667121}
- Loading branch information
James Cook
authored and
Commit Bot
committed
Jun 7, 2019
1 parent
af198ea
commit ee5fc73
Showing
14 changed files
with
207 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// Copyright 2019 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/public/cpp/test/test_system_tray_client.h" | ||
|
||
namespace ash { | ||
|
||
TestSystemTrayClient::TestSystemTrayClient() = default; | ||
|
||
TestSystemTrayClient::~TestSystemTrayClient() = default; | ||
|
||
void TestSystemTrayClient::ShowSettings() {} | ||
|
||
void TestSystemTrayClient::ShowBluetoothSettings() { | ||
show_bluetooth_settings_count_++; | ||
} | ||
|
||
void TestSystemTrayClient::ShowBluetoothPairingDialog( | ||
const std::string& address, | ||
const base::string16& name_for_display, | ||
bool paired, | ||
bool connected) {} | ||
|
||
void TestSystemTrayClient::ShowDateSettings() {} | ||
|
||
void TestSystemTrayClient::ShowSetTimeDialog() {} | ||
|
||
void TestSystemTrayClient::ShowDisplaySettings() {} | ||
|
||
void TestSystemTrayClient::ShowPowerSettings() {} | ||
|
||
void TestSystemTrayClient::ShowChromeSlow() {} | ||
|
||
void TestSystemTrayClient::ShowIMESettings() {} | ||
|
||
void TestSystemTrayClient::ShowConnectedDevicesSettings() { | ||
show_connected_devices_settings_count_++; | ||
} | ||
|
||
void TestSystemTrayClient::ShowAboutChromeOS() {} | ||
|
||
void TestSystemTrayClient::ShowHelp() {} | ||
|
||
void TestSystemTrayClient::ShowAccessibilityHelp() {} | ||
|
||
void TestSystemTrayClient::ShowAccessibilitySettings() {} | ||
|
||
void TestSystemTrayClient::ShowPaletteHelp() {} | ||
|
||
void TestSystemTrayClient::ShowPaletteSettings() {} | ||
|
||
void TestSystemTrayClient::ShowPublicAccountInfo() {} | ||
|
||
void TestSystemTrayClient::ShowEnterpriseInfo() {} | ||
|
||
void TestSystemTrayClient::ShowNetworkConfigure(const std::string& network_id) { | ||
} | ||
|
||
void TestSystemTrayClient::ShowNetworkCreate(const std::string& type) {} | ||
|
||
void TestSystemTrayClient::ShowThirdPartyVpnCreate( | ||
const std::string& extension_id) {} | ||
|
||
void TestSystemTrayClient::ShowArcVpnCreate(const std::string& app_id) {} | ||
|
||
void TestSystemTrayClient::ShowNetworkSettings(const std::string& network_id) {} | ||
|
||
void TestSystemTrayClient::ShowMultiDeviceSetup() { | ||
show_multi_device_setup_count_++; | ||
} | ||
|
||
void TestSystemTrayClient::RequestRestartForUpdate() {} | ||
|
||
void TestSystemTrayClient::SetLocaleAndExit( | ||
const std::string& locale_iso_code) {} | ||
|
||
} // namespace ash |
Oops, something went wrong.