Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1249)

Unified Diff: ash/system/enterprise/tray_enterprise_unittest.cc

Issue 2931643002: chromeos: Introduce ash::SystemTrayTestApi (Closed)
Patch Set: review comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/network/tray_network_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/enterprise/tray_enterprise_unittest.cc
diff --git a/ash/system/enterprise/tray_enterprise_unittest.cc b/ash/system/enterprise/tray_enterprise_unittest.cc
index 0735efa1a544293241160c17880fc6a60abce54b..9ccedc9f958b82c82b0a98ee61fb5987136757d0 100644
--- a/ash/system/enterprise/tray_enterprise_unittest.cc
+++ b/ash/system/enterprise/tray_enterprise_unittest.cc
@@ -8,6 +8,7 @@
#include "ash/system/tray/label_tray_view.h"
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_controller.h"
+#include "ash/system/tray/system_tray_test_api.h"
#include "ash/test/ash_test_base.h"
namespace ash {
@@ -16,7 +17,8 @@ using TrayEnterpriseTest = test::AshTestBase;
TEST_F(TrayEnterpriseTest, ItemVisible) {
SystemTray* system_tray = GetPrimarySystemTray();
- TrayEnterprise* tray_enterprise = system_tray->GetTrayEnterpriseForTesting();
+ TrayEnterprise* tray_enterprise =
+ SystemTrayTestApi(system_tray).tray_enterprise();
// By default there is no enterprise item in the menu.
system_tray->ShowDefaultView(BUBBLE_CREATE_NEW);
@@ -36,7 +38,8 @@ TEST_F(TrayEnterpriseTest, ItemVisible) {
TEST_F(TrayEnterpriseTest, ItemVisibleForActiveDirectory) {
SystemTray* system_tray = GetPrimarySystemTray();
- TrayEnterprise* tray_enterprise = system_tray->GetTrayEnterpriseForTesting();
+ TrayEnterprise* tray_enterprise =
+ SystemTrayTestApi(system_tray).tray_enterprise();
// Simulate enterprise information becoming available. Active Directory
// devices do not have a domain.
« no previous file with comments | « no previous file | ash/system/network/tray_network_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698