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

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

Issue 8915007: views: Rename IsVisibleInRootView() to IsDrawn(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/extension_installed_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 14 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/extension_installed_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698