| 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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/browser_thread.h" | |
| 9 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | |
| 10 #include "chrome/test/testing_profile.h" | 8 #include "chrome/test/testing_profile.h" |
| 9 #include "content/browser/browser_thread.h" |
| 10 #include "content/browser/renderer_host/test_render_view_host.h" |
| 11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 14 | 14 |
| 15 class NotificationExceptionsTableModelTest : public RenderViewHostTestHarness { | 15 class NotificationExceptionsTableModelTest : public RenderViewHostTestHarness { |
| 16 public: | 16 public: |
| 17 NotificationExceptionsTableModelTest() | 17 NotificationExceptionsTableModelTest() |
| 18 : ui_thread_(BrowserThread::UI, MessageLoop::current()) { | 18 : ui_thread_(BrowserThread::UI, MessageLoop::current()) { |
| 19 } | 19 } |
| 20 | 20 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 RemoveRowsTableModel::Rows rows; | 118 RemoveRowsTableModel::Rows rows; |
| 119 rows.insert(0); | 119 rows.insert(0); |
| 120 rows.insert(1); | 120 rows.insert(1); |
| 121 rows.insert(2); | 121 rows.insert(2); |
| 122 model_->RemoveRows(rows); | 122 model_->RemoveRows(rows); |
| 123 } | 123 } |
| 124 EXPECT_EQ(0, model_->RowCount()); | 124 EXPECT_EQ(0, model_->RowCount()); |
| 125 EXPECT_EQ(0u, service_->GetAllowedOrigins().size()); | 125 EXPECT_EQ(0u, service_->GetAllowedOrigins().size()); |
| 126 EXPECT_EQ(0u, service_->GetBlockedOrigins().size()); | 126 EXPECT_EQ(0u, service_->GetBlockedOrigins().size()); |
| 127 } | 127 } |
| OLD | NEW |