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

Side by Side Diff: chrome/browser/plugin_exceptions_table_model_unittest.cc

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/plugin_data_remover_helper.cc ('k') | chrome/browser/plugin_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "app/table_model_observer.h" 5 #include "app/table_model_observer.h"
6 #include "base/auto_reset.h" 6 #include "base/auto_reset.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/mock_plugin_exceptions_table_model.h" 9 #include "chrome/browser/mock_plugin_exceptions_table_model.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/pref_names.h"
12 #include "chrome/test/testing_pref_service.h" 11 #include "chrome/test/testing_pref_service.h"
13 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
14 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webkit/plugins/npapi/plugin_group.h" 15 #include "webkit/plugins/npapi/plugin_group.h"
17 #include "webkit/plugins/npapi/webplugininfo.h" 16 #include "webkit/plugins/npapi/webplugininfo.h"
18 17
19 // Can't be an internal namespace because PluginExceptionsTableModel declares 18 // Can't be an internal namespace because PluginExceptionsTableModel declares
20 // as a friend. 19 // as a friend.
21 namespace plugin_test_internal { 20 namespace plugin_test_internal {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 plugin_test_internal::MockTableModelObserver observer(table_model_.get()); 207 plugin_test_internal::MockTableModelObserver observer(table_model_.get());
209 table_model_->SetObserver(&observer); 208 table_model_->SetObserver(&observer);
210 209
211 EXPECT_CALL(observer, OnModelChanged()); 210 EXPECT_CALL(observer, OnModelChanged());
212 table_model_->RemoveAll(); 211 table_model_->RemoveAll();
213 EXPECT_EQ(0, table_model_->RowCount()); 212 EXPECT_EQ(0, table_model_->RowCount());
214 EXPECT_EQ(0, static_cast<int>(table_model_->GetGroups().size())); 213 EXPECT_EQ(0, static_cast<int>(table_model_->GetGroups().size()));
215 CheckInvariants(); 214 CheckInvariants();
216 table_model_->SetObserver(NULL); 215 table_model_->SetObserver(NULL);
217 } 216 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_data_remover_helper.cc ('k') | chrome/browser/plugin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698