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

Side by Side Diff: components/history/core/browser/url_database_unittest.cc

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/history/core/browser/keyword_search_term.h" 10 #include "components/history/core/browser/keyword_search_term.h"
(...skipping 23 matching lines...) Expand all
34 } // namespace 34 } // namespace
35 35
36 class URLDatabaseTest : public testing::Test, 36 class URLDatabaseTest : public testing::Test,
37 public URLDatabase { 37 public URLDatabase {
38 public: 38 public:
39 URLDatabaseTest() { 39 URLDatabaseTest() {
40 } 40 }
41 41
42 protected: 42 protected:
43 // Provided for URL/VisitDatabase. 43 // Provided for URL/VisitDatabase.
44 virtual sql::Connection& GetDB() OVERRIDE { 44 virtual sql::Connection& GetDB() override {
45 return db_; 45 return db_;
46 } 46 }
47 47
48 private: 48 private:
49 // Test setup. 49 // Test setup.
50 virtual void SetUp() { 50 virtual void SetUp() {
51 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 51 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
52 base::FilePath db_file = temp_dir_.path().AppendASCII("URLTest.db"); 52 base::FilePath db_file = temp_dir_.path().AppendASCII("URLTest.db");
53 53
54 EXPECT_TRUE(db_.Open(db_file)); 54 EXPECT_TRUE(db_.Open(db_file));
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 ASSERT_EQ(1u, rows.size()); 327 ASSERT_EQ(1u, rows.size());
328 EXPECT_EQ(keyword2, rows[0].term); 328 EXPECT_EQ(keyword2, rows[0].term);
329 EXPECT_EQ(url_id3, rows[0].url_id); 329 EXPECT_EQ(url_id3, rows[0].url_id);
330 rows.clear(); 330 rows.clear();
331 // No row for keyword. 331 // No row for keyword.
332 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows)); 332 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows));
333 EXPECT_TRUE(rows.empty()); 333 EXPECT_TRUE(rows.empty());
334 } 334 }
335 335
336 } // namespace history 336 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/in_memory_database.h ('k') | components/history/core/test/history_client_fake_bookmarks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698