diff options
Diffstat (limited to 'chrome/views/table_view_unittest.cc')
-rw-r--r-- | chrome/views/table_view_unittest.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/views/table_view_unittest.cc b/chrome/views/table_view_unittest.cc index 5b4c509..9ef53da 100644 --- a/chrome/views/table_view_unittest.cc +++ b/chrome/views/table_view_unittest.cc @@ -212,6 +212,16 @@ TestTableModel* TableViewTest::CreateModel() { return new TestTableModel(); } +// NullModelTableViewTest ------------------------------------------------------ + +class NullModelTableViewTest : public TableViewTest { + protected: + // Creates the model. + TestTableModel* CreateModel() { + return NULL; + } +}; + // Tests ----------------------------------------------------------------------- // Tests various sorting permutations. @@ -363,3 +373,8 @@ TEST_F(TableViewTest, PersistMultiSelectionOnAdd) { VerifySelectedRows(1, 0, -1); } + +TEST_F(NullModelTableViewTest, NullModel) { + // There's nothing explicit to test. If there is a bug in TableView relating + // to a NULL model we'll crash. +} |