diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 19:12:22 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 19:12:22 +0000 |
commit | b4a27e0f8b300ce64eb2ebce99338f67aa36d58f (patch) | |
tree | 1e2a114e8d9f1a228b7f94b71180b3c54264b56b /chrome/browser/plugin_exceptions_table_model_unittest.cc | |
parent | 6adf6ea9625179e001c3fc1b1586f763054b15e1 (diff) | |
download | chromium_src-b4a27e0f8b300ce64eb2ebce99338f67aa36d58f.zip chromium_src-b4a27e0f8b300ce64eb2ebce99338f67aa36d58f.tar.gz chromium_src-b4a27e0f8b300ce64eb2ebce99338f67aa36d58f.tar.bz2 |
Readability review for bauerb.
PluginDataRemover opens a connection to the Flash plugin process, tells it to call the NPP_ClearSiteData function and waits for it to finish. This is used in Chrome to clear Flash LSO data from the Clear Browsing Data dialog and at shutdown.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6665034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_exceptions_table_model_unittest.cc')
-rw-r--r-- | chrome/browser/plugin_exceptions_table_model_unittest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/plugin_exceptions_table_model_unittest.cc b/chrome/browser/plugin_exceptions_table_model_unittest.cc index ac14c86b..95342b1 100644 --- a/chrome/browser/plugin_exceptions_table_model_unittest.cc +++ b/chrome/browser/plugin_exceptions_table_model_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -24,7 +24,7 @@ using ::testing::Invoke; class MockTableModelObserver : public ui::TableModelObserver { public: - explicit MockTableModelObserver(ui::TableModel* model) + explicit MockTableModelObserver(ui::TableModel* model) : model_(model) { ON_CALL(*this, OnItemsRemoved(_, _)) .WillByDefault( @@ -108,12 +108,12 @@ class PluginExceptionsTableModelTest : public testing::Test { } protected: - void CheckInvariants() { - typedef std::deque<PluginExceptionsTableModel::SettingsEntry> Entries; - Entries& settings = table_model_->settings_; - std::deque<int>& row_counts = table_model_->row_counts_; - std::deque<std::string>& resources = table_model_->resources_; - ui::TableModel::Groups& groups = table_model_->groups_; + void CheckInvariants() const { + typedef std::vector<PluginExceptionsTableModel::SettingsEntry> Entries; + const Entries& settings = table_model_->settings_; + const std::vector<int>& row_counts = table_model_->row_counts_; + const std::vector<std::string>& resources = table_model_->resources_; + const ui::TableModel::Groups& groups = table_model_->groups_; EXPECT_EQ(groups.size(), row_counts.size()); EXPECT_EQ(groups.size(), resources.size()); |