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

Side by Side Diff: components/precache/core/precache_url_table_unittest.cc

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/precache/core/precache_url_table.h" 5 #include "components/precache/core/precache_url_table.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "sql/connection.h" 12 #include "sql/connection.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace precache { 15 namespace precache {
16 16
17 namespace { 17 namespace {
18 18
19 class PrecacheURLTableTest : public testing::Test { 19 class PrecacheURLTableTest : public testing::Test {
20 public: 20 public:
21 PrecacheURLTableTest() {} 21 PrecacheURLTableTest() {}
22 virtual ~PrecacheURLTableTest() {} 22 ~PrecacheURLTableTest() override {}
23 23
24 protected: 24 protected:
25 virtual void SetUp() override { 25 void SetUp() override {
26 precache_url_table_.reset(new PrecacheURLTable()); 26 precache_url_table_.reset(new PrecacheURLTable());
27 db_.reset(new sql::Connection()); 27 db_.reset(new sql::Connection());
28 ASSERT_TRUE(db_->OpenInMemory()); 28 ASSERT_TRUE(db_->OpenInMemory());
29 precache_url_table_->Init(db_.get()); 29 precache_url_table_->Init(db_.get());
30 } 30 }
31 31
32 scoped_ptr<PrecacheURLTable> precache_url_table_; 32 scoped_ptr<PrecacheURLTable> precache_url_table_;
33 scoped_ptr<sql::Connection> db_; 33 scoped_ptr<sql::Connection> db_;
34 }; 34 };
35 35
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 expected_map[GURL("http://after.com")] = kAfterTime; 107 expected_map[GURL("http://after.com")] = kAfterTime;
108 108
109 std::map<GURL, base::Time> actual_map; 109 std::map<GURL, base::Time> actual_map;
110 precache_url_table_->GetAllDataForTesting(&actual_map); 110 precache_url_table_->GetAllDataForTesting(&actual_map);
111 EXPECT_EQ(expected_map, actual_map); 111 EXPECT_EQ(expected_map, actual_map);
112 } 112 }
113 113
114 } // namespace 114 } // namespace
115 115
116 } // namespace precache 116 } // namespace precache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698