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

Side by Side Diff: chrome/browser/net/evicted_domain_cookie_counter_unittest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 26 matching lines...) Expand all
37 // EvictedDomainCookieCounter::Delegate implementation. 37 // EvictedDomainCookieCounter::Delegate implementation.
38 void Report(const EvictedDomainCookieCounter::EvictedCookie& evicted_cookie, 38 void Report(const EvictedDomainCookieCounter::EvictedCookie& evicted_cookie,
39 const Time& reinstatement_time) override; 39 const Time& reinstatement_time) override;
40 Time CurrentTime() const override; 40 Time CurrentTime() const override;
41 41
42 private: 42 private:
43 EvictedDomainCookieCounterTest* tester_; 43 EvictedDomainCookieCounterTest* tester_;
44 }; 44 };
45 45
46 EvictedDomainCookieCounterTest(); 46 EvictedDomainCookieCounterTest();
47 virtual ~EvictedDomainCookieCounterTest(); 47 ~EvictedDomainCookieCounterTest() override;
48 48
49 // testing::Test implementation. 49 // testing::Test implementation.
50 virtual void SetUp() override; 50 void SetUp() override;
51 virtual void TearDown() override; 51 void TearDown() override;
52 52
53 // Initialization that allows parameters to be specified. 53 // Initialization that allows parameters to be specified.
54 void InitCounter(size_t max_size, size_t purge_count); 54 void InitCounter(size_t max_size, size_t purge_count);
55 55
56 // Wrapper to allocate new cookie and store it in |cookies_|. 56 // Wrapper to allocate new cookie and store it in |cookies_|.
57 // If |max_age| == 0, then the cookie does not expire. 57 // If |max_age| == 0, then the cookie does not expire.
58 void CreateNewCookie( 58 void CreateNewCookie(
59 const char* url, const std::string& cookie_line, int64 max_age); 59 const char* url, const std::string& cookie_line, int64 max_age);
60 60
61 // Clears |cookies_| and creates common cookies for multiple tests. 61 // Clears |cookies_| and creates common cookies for multiple tests.
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 for (int i = 0; i < 6; ++i) 375 for (int i = 0; i < 6; ++i)
376 Add(cookies_[i]); 376 Add(cookies_[i]);
377 EXPECT_EQ(0u, cookie_counter_->GetStorageSize()); 377 EXPECT_EQ(0u, cookie_counter_->GetStorageSize());
378 // Reinstatement delays: [1499,1497,(1494),(1490),(1485),300]. 378 // Reinstatement delays: [1499,1497,(1494),(1490),(1485),300].
379 EXPECT_EQ("1499,1497;300", google_stat_ + ";" + other_stat_); 379 EXPECT_EQ("1499,1497;300", google_stat_ + ";" + other_stat_);
380 } 380 }
381 381
382 } // namespace 382 } // namespace
383 383
384 } // namespace chrome_browser_net 384 } // namespace chrome_browser_net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698