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

Unified Diff: views/controls/tabbed_pane/tabbed_pane_unittest.cc

Issue 7189019: Fix even more crashes. To help identify remaining crashes now and in the future, I have made the ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: views/controls/tabbed_pane/tabbed_pane_unittest.cc
===================================================================
--- views/controls/tabbed_pane/tabbed_pane_unittest.cc (revision 89357)
+++ views/controls/tabbed_pane/tabbed_pane_unittest.cc (working copy)
@@ -38,20 +38,26 @@
}
private:
- virtual void SetUp() {
+ virtual void SetUp() OVERRIDE {
tabbed_pane_ = new TabbedPane();
window_ = Widget::CreateWindowWithBounds(this, gfx::Rect(0, 0, 100, 100));
window_->Show();
}
- virtual void TearDown() {
+ virtual void TearDown() OVERRIDE {
window_->Close();
message_loop_.RunAllPending();
}
- virtual views::View* GetContentsView() {
+ virtual views::View* GetContentsView() OVERRIDE {
return tabbed_pane_;
}
+ virtual views::Widget* GetWidget() OVERRIDE {
+ return tabbed_pane_->GetWidget();
+ }
+ virtual const views::Widget* GetWidget() const OVERRIDE {
+ return tabbed_pane_->GetWidget();
+ }
MessageLoopForUI message_loop_;
Widget* window_;

Powered by Google App Engine
This is Rietveld 408576698