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

Unified Diff: chrome/browser/net/transport_security_persister_unittest.cc

Issue 57993004: Remove content dependency from TransportSecurityPersister. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/transport_security_persister.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/transport_security_persister_unittest.cc
diff --git a/chrome/browser/net/transport_security_persister_unittest.cc b/chrome/browser/net/transport_security_persister_unittest.cc
index 54555986e017d0d88a21f7d33e8361b2634cdbb4..f13577b053a0856c227bd7e0df89bda5292b0a4e 100644
--- a/chrome/browser/net/transport_security_persister_unittest.cc
+++ b/chrome/browser/net/transport_security_persister_unittest.cc
@@ -12,7 +12,6 @@
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/message_loop/message_loop.h"
-#include "content/public/test/test_browser_thread.h"
#include "net/http/transport_security_state.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -21,9 +20,7 @@ using net::TransportSecurityState;
class TransportSecurityPersisterTest : public testing::Test {
public:
TransportSecurityPersisterTest()
- : message_loop_(base::MessageLoop::TYPE_IO),
- test_file_thread_(content::BrowserThread::FILE, &message_loop_),
- test_io_thread_(content::BrowserThread::IO, &message_loop_) {
+ : message_loop_(base::MessageLoop::TYPE_IO) {
}
virtual ~TransportSecurityPersisterTest() {
@@ -32,8 +29,8 @@ class TransportSecurityPersisterTest : public testing::Test {
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- persister_.reset(
- new TransportSecurityPersister(&state_, temp_dir_.path(), false));
+ persister_.reset(new TransportSecurityPersister(
+ &state_, temp_dir_.path(), message_loop_.message_loop_proxy(), false));
}
protected:
@@ -41,12 +38,6 @@ class TransportSecurityPersisterTest : public testing::Test {
// right order, then DCHECKs will fail all over the place.
base::MessageLoop message_loop_;
- // Needed for ImportantFileWriter, which TransportSecurityPersister uses.
- content::TestBrowserThread test_file_thread_;
-
- // TransportSecurityPersister runs on the IO thread.
- content::TestBrowserThread test_io_thread_;
-
base::ScopedTempDir temp_dir_;
TransportSecurityState state_;
scoped_ptr<TransportSecurityPersister> persister_;
« no previous file with comments | « chrome/browser/net/transport_security_persister.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698