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

Unified Diff: chrome/browser/ui/views/ash/status_area_host_aura_browsertest.cc

Issue 10056001: chromeos: Remove old status-area related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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
Index: chrome/browser/ui/views/ash/status_area_host_aura_browsertest.cc
diff --git a/chrome/browser/ui/views/ash/status_area_host_aura_browsertest.cc b/chrome/browser/ui/views/ash/status_area_host_aura_browsertest.cc
deleted file mode 100644
index 6afeea9394e3ace6355220e5115a8ac8cb206920..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/ash/status_area_host_aura_browsertest.cc
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 2012 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/shell.h"
-#include "base/command_line.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/chromeos/status/status_area_button.h"
-#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_window.h"
-#include "chrome/browser/ui/views/ash/chrome_shell_delegate.h"
-#include "chrome/browser/ui/views/ash/status_area_host_aura.h"
-#include "chrome/common/chrome_notification_types.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/test/base/in_process_browser_test.h"
-#include "chrome/test/base/ui_test_utils.h"
-#include "content/public/browser/notification_service.h"
-#include "ui/gfx/size.h"
-
-#if defined(OS_CHROMEOS)
-#include "base/chromeos/chromeos_version.h"
-#include "chrome/browser/chromeos/login/screen_locker.h"
-#include "chrome/browser/chromeos/login/screen_locker_tester.h"
-#include "chrome/browser/chromeos/login/user_manager.h"
-#endif
-
-typedef InProcessBrowserTest StatusAreaHostAuraTest;
-
-IN_PROC_BROWSER_TEST_F(StatusAreaHostAuraTest, TextStyle) {
- ChromeShellDelegate* delegate = static_cast<ChromeShellDelegate*>(
- ash::Shell::GetInstance()->delegate());
- StatusAreaHostAura* host = delegate->status_area_host();
-
-#if defined(OS_CHROMEOS)
- ASSERT_TRUE(!chromeos::UserManager::Get()->IsUserLoggedIn() ||
- chromeos::UserManager::Get()->IsLoggedInAsStub());
- if (base::chromeos::IsRunningOnChromeOS()) {
- EXPECT_EQ(StatusAreaButton::GRAY_PLAIN_LIGHT,
- host->GetStatusAreaTextStyle());
- } else {
- EXPECT_EQ(StatusAreaButton::WHITE_HALOED_BOLD,
- host->GetStatusAreaTextStyle());
- }
-
- // ProfileManager expects a profile dir to be set on Chrome OS.
- CommandLine::ForCurrentProcess()->AppendSwitchNative(
- switches::kLoginProfile, "StatusAreaHostAuraTest");
- chromeos::UserManager::Get()->UserLoggedIn("foo@example.com");
- ASSERT_TRUE(chromeos::UserManager::Get()->IsUserLoggedIn() &&
- !chromeos::UserManager::Get()->IsLoggedInAsStub());
-#endif
-
- Browser* browser = CreateBrowser(ProfileManager::GetDefaultProfile());
- EXPECT_EQ(StatusAreaButton::WHITE_HALOED_BOLD,
- host->GetStatusAreaTextStyle());
-
-#if defined(OS_CHROMEOS)
- // Lock the screen.
- chromeos::ScreenLocker::Show();
- scoped_ptr<chromeos::test::ScreenLockerTester> tester(
- chromeos::ScreenLocker::GetTester());
- tester->EmulateWindowManagerReady();
- ui_test_utils::WindowedNotificationObserver lock_state_observer(
- chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
- content::NotificationService::AllSources());
- if (!tester->IsLocked())
- lock_state_observer.Wait();
- ASSERT_TRUE(tester->IsLocked());
- EXPECT_EQ(StatusAreaButton::GRAY_PLAIN_LIGHT, host->GetStatusAreaTextStyle());
-
- chromeos::ScreenLocker::Hide();
- ui_test_utils::RunAllPendingInMessageLoop();
- ASSERT_FALSE(tester->IsLocked());
-
- EXPECT_EQ(StatusAreaButton::WHITE_HALOED_BOLD,
- host->GetStatusAreaTextStyle());
-#endif
-
- browser->CloseWindow();
-}
« no previous file with comments | « chrome/browser/ui/views/ash/status_area_host_aura.cc ('k') | chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698