OLD | NEW |
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" |
(...skipping 14 matching lines...) Expand all Loading... |
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->IsVisibleInRootView()); | 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 |
OLD | NEW |