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

Side by Side Diff: content/browser/net/sqlite_persistent_cookie_store_unittest.cc

Issue 678073006: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bogus formatting 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 (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 "content/browser/net/sqlite_persistent_cookie_store.h" 5 #include "content/browser/net/sqlite_persistent_cookie_store.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 std::string ReadRawDBContents() { 168 std::string ReadRawDBContents() {
169 std::string contents; 169 std::string contents;
170 if (!base::ReadFileToString(temp_dir_.path().Append(kCookieFilename), 170 if (!base::ReadFileToString(temp_dir_.path().Append(kCookieFilename),
171 &contents)) 171 &contents))
172 return std::string(); 172 return std::string();
173 return contents; 173 return contents;
174 } 174 }
175 175
176 virtual void SetUp() override { 176 void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); }
177 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
178 }
179 177
180 virtual void TearDown() override { 178 void TearDown() override {
181 DestroyStore(); 179 DestroyStore();
182 pool_owner_->pool()->Shutdown(); 180 pool_owner_->pool()->Shutdown();
183 } 181 }
184 182
185 protected: 183 protected:
186 base::MessageLoop main_loop_; 184 base::MessageLoop main_loop_;
187 scoped_ptr<base::SequencedWorkerPoolOwner> pool_owner_; 185 scoped_ptr<base::SequencedWorkerPoolOwner> pool_owner_;
188 base::WaitableEvent loaded_event_; 186 base::WaitableEvent loaded_event_;
189 base::WaitableEvent key_loaded_event_; 187 base::WaitableEvent key_loaded_event_;
190 base::WaitableEvent db_thread_event_; 188 base::WaitableEvent db_thread_event_;
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 EXPECT_EQ(2, resultcount); 597 EXPECT_EQ(2, resultcount);
600 598
601 // Verify that "encrypted_value" is NOT visible in the file. 599 // Verify that "encrypted_value" is NOT visible in the file.
602 contents = ReadRawDBContents(); 600 contents = ReadRawDBContents();
603 EXPECT_NE(0U, contents.length()); 601 EXPECT_NE(0U, contents.length());
604 EXPECT_EQ(contents.find("encrypted_value123XYZ"), std::string::npos); 602 EXPECT_EQ(contents.find("encrypted_value123XYZ"), std::string::npos);
605 EXPECT_EQ(contents.find("something456ABC"), std::string::npos); 603 EXPECT_EQ(contents.find("something456ABC"), std::string::npos);
606 } 604 }
607 605
608 } // namespace content 606 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/sqlite_persistent_cookie_store_perftest.cc ('k') | content/browser/plugin_loader_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698