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

Side by Side Diff: chrome/browser/chromeos/status/status_area_view_browsertest.cc

Issue 9570044: Rename chrome/browser/ui/views/{aura => ash}/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/frame/browser_view.h" 5 #include "chrome/browser/chromeos/frame/browser_view.h"
6 #include "chrome/browser/chromeos/status/status_area_view.h" 6 #include "chrome/browser/chromeos/status/status_area_view.h"
7 #include "chrome/browser/chromeos/view_ids.h" 7 #include "chrome/browser/chromeos/view_ids.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
11 11
12 #if defined(USE_AURA) 12 #if defined(USE_AURA)
13 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h" 13 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h"
14 #endif 14 #endif
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class StatusAreaViewTest : public InProcessBrowserTest { 18 class StatusAreaViewTest : public InProcessBrowserTest {
19 protected: 19 protected:
20 StatusAreaViewTest() : InProcessBrowserTest() {} 20 StatusAreaViewTest() : InProcessBrowserTest() {}
21 const StatusAreaView* GetStatusAreaView() { 21 const StatusAreaView* GetStatusAreaView() {
22 const views::View* view = 22 const views::View* view =
23 #if defined(USE_AURA) 23 #if defined(USE_AURA)
24 ChromeShellDelegate::instance()->GetStatusArea(); 24 ChromeShellDelegate::instance()->GetStatusArea();
25 #else 25 #else
26 static_cast<BrowserView*>(browser()->window()); 26 static_cast<BrowserView*>(browser()->window());
27 #endif 27 #endif
28 return static_cast<const StatusAreaView*>( 28 return static_cast<const StatusAreaView*>(
29 view->GetViewByID(VIEW_ID_STATUS_AREA)); 29 view->GetViewByID(VIEW_ID_STATUS_AREA));
30 } 30 }
31 }; 31 };
32 32
33 IN_PROC_BROWSER_TEST_F(StatusAreaViewTest, VisibleTest) { 33 IN_PROC_BROWSER_TEST_F(StatusAreaViewTest, VisibleTest) {
34 const StatusAreaView* status = GetStatusAreaView(); 34 const StatusAreaView* status = GetStatusAreaView();
35 EXPECT_TRUE(status->IsDrawn()); 35 EXPECT_TRUE(status->IsDrawn());
36 EXPECT_FALSE(status->size().IsEmpty()); 36 EXPECT_FALSE(status->size().IsEmpty());
37 } 37 }
38 38
39 } // namespace chromeos 39 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/power_menu_button_browsertest.cc ('k') | chrome/browser/chromeos/system_key_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698