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

Unified Diff: chrome/browser/bookmarks/bookmark_model_unittest.cc

Issue 8561031: Replace ScopedCommandLineOverride with TestSuite listener. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last nit from Pawel. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/bookmarks/bookmark_model_unittest.cc
diff --git a/chrome/browser/bookmarks/bookmark_model_unittest.cc b/chrome/browser/bookmarks/bookmark_model_unittest.cc
index b3cb34c16cec26278458cac7dfaefd463ff38446..8491b710ab918879b68e590884ba695128cf2123 100644
--- a/chrome/browser/bookmarks/bookmark_model_unittest.cc
+++ b/chrome/browser/bookmarks/bookmark_model_unittest.cc
@@ -88,16 +88,11 @@ class BookmarkModelTest : public testing::Test,
};
BookmarkModelTest()
- : model_(NULL),
- original_command_line_(*CommandLine::ForCurrentProcess()) {
+ : model_(NULL) {
model_.AddObserver(this);
ClearCounts();
}
- virtual void TearDown() OVERRIDE {
- *CommandLine::ForCurrentProcess() = original_command_line_;
- }
-
void Loaded(BookmarkModel* model, bool ids_reassigned) OVERRIDE {
// We never load from the db, so that this should never get invoked.
NOTREACHED();
@@ -167,8 +162,6 @@ class BookmarkModelTest : public testing::Test,
ObserverDetails observer_details_;
private:
- CommandLine original_command_line_;
-
int added_count_;
int moved_count_;
int removed_count_;

Powered by Google App Engine
This is Rietveld 408576698