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

Side by Side Diff: chrome/browser/notifications/notification_exceptions_table_model_unittest.cc

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698