tab_strip_->AddObserver(this);
}
- virtual ~TestTabStripObserver() {
+ ~TestTabStripObserver() override {
if (tab_strip_)
tab_strip_->RemoveObserver(this);
}
private:
// TabStripObserver overrides.
- virtual void TabStripAddedTabAt(TabStrip* tab_strip, int index) OVERRIDE {
+ void TabStripAddedTabAt(TabStrip* tab_strip, int index) override {
last_tab_added_ = index;
}
- virtual void TabStripMovedTab(TabStrip* tab_strip,
- int from_index,
- int to_index) OVERRIDE {
+ void TabStripMovedTab(TabStrip* tab_strip,
+ int from_index,
+ int to_index) override {
last_tab_moved_from_ = from_index;
last_tab_moved_to_ = to_index;
}
- virtual void TabStripRemovedTabAt(TabStrip* tab_strip, int index) OVERRIDE {
+ void TabStripRemovedTabAt(TabStrip* tab_strip, int index) override {
last_tab_removed_ = index;
}
- virtual void TabStripDeleted(TabStrip* tab_strip) OVERRIDE {
+ void TabStripDeleted(TabStrip* tab_strip) override {
tabstrip_deleted_ = true;
tab_strip_ = NULL;
}
tab_strip_(NULL) {
}
- virtual ~TabStripTest() {}
+ ~TabStripTest() override {}
- virtual void SetUp() OVERRIDE {
+ void SetUp() override {
views::ViewsTestBase::SetUp();
controller_ = new FakeBaseTabStripController;
widget_->SetContentsView(&parent_);
}
- virtual void TearDown() OVERRIDE {
+ void TearDown() override {
widget_.reset();
views::ViewsTestBase::TearDown();
}