| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/notifications/notification_exceptions_table_model.h" | 5 #include "chrome/browser/notifications/notification_exceptions_table_model.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "chrome/browser/chrome_thread.h" |
| 8 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 9 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 9 #include "chrome/test/testing_profile.h" | 10 #include "chrome/test/testing_profile.h" |
| 10 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 class NotificationExceptionsTableModelTest : public RenderViewHostTestHarness { | 14 class NotificationExceptionsTableModelTest : public RenderViewHostTestHarness { |
| 14 public: | 15 public: |
| 15 NotificationExceptionsTableModelTest() | 16 NotificationExceptionsTableModelTest() |
| 16 : ui_thread_(ChromeThread::UI, MessageLoop::current()) { | 17 : ui_thread_(ChromeThread::UI, MessageLoop::current()) { |
| 17 } | 18 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 RemoveRowsTableModel::Rows rows; | 117 RemoveRowsTableModel::Rows rows; |
| 117 rows.insert(0); | 118 rows.insert(0); |
| 118 rows.insert(1); | 119 rows.insert(1); |
| 119 rows.insert(2); | 120 rows.insert(2); |
| 120 model_->RemoveRows(rows); | 121 model_->RemoveRows(rows); |
| 121 } | 122 } |
| 122 EXPECT_EQ(0, model_->RowCount()); | 123 EXPECT_EQ(0, model_->RowCount()); |
| 123 EXPECT_EQ(0u, service_->GetAllowedOrigins().size()); | 124 EXPECT_EQ(0u, service_->GetAllowedOrigins().size()); |
| 124 EXPECT_EQ(0u, service_->GetBlockedOrigins().size()); | 125 EXPECT_EQ(0u, service_->GetBlockedOrigins().size()); |
| 125 } | 126 } |
| OLD | NEW |