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

Side by Side Diff: chrome/browser/bookmarks/bookmark_html_writer_unittest.cc

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs Created 6 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bookmarks/bookmark_html_writer.h" 5 #include "chrome/browser/bookmarks/bookmark_html_writer.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 base::FilePath path_; 123 base::FilePath path_;
124 }; 124 };
125 125
126 // Class that will notify message loop when file is written. 126 // Class that will notify message loop when file is written.
127 class BookmarksObserver : public BookmarksExportObserver { 127 class BookmarksObserver : public BookmarksExportObserver {
128 public: 128 public:
129 explicit BookmarksObserver(base::RunLoop* loop) : loop_(loop) { 129 explicit BookmarksObserver(base::RunLoop* loop) : loop_(loop) {
130 DCHECK(loop); 130 DCHECK(loop);
131 } 131 }
132 132
133 virtual void OnExportFinished() OVERRIDE { 133 virtual void OnExportFinished() override {
134 loop_->Quit(); 134 loop_->Quit();
135 } 135 }
136 136
137 private: 137 private:
138 base::RunLoop* loop_; 138 base::RunLoop* loop_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(BookmarksObserver); 140 DISALLOW_COPY_AND_ASSIGN(BookmarksObserver);
141 }; 141 };
142 142
143 // Tests bookmark_html_writer by populating a BookmarkModel, writing it out by 143 // Tests bookmark_html_writer by populating a BookmarkModel, writing it out by
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, 285 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1,
286 f3_title, f4_title, base::string16()); 286 f3_title, f4_title, base::string16());
287 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, 287 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1,
288 base::string16(), base::string16(), 288 base::string16(), base::string16(),
289 base::string16()); 289 base::string16());
290 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url, 290 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url,
291 unnamed_bookmark_title, t2, 291 unnamed_bookmark_title, t2,
292 base::string16(), base::string16(), 292 base::string16(), base::string16(),
293 base::string16()); 293 base::string16());
294 } 294 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.h ('k') | chrome/browser/bookmarks/bookmark_model_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698