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

Unified Diff: net/http/transport_security_persister_unittest.cc

Issue 59693008: Give mojo_shell a TransportSecurityPersister (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sprinkle some NET_EXPORT 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 | « net/http/transport_security_persister.cc ('k') | net/http/transport_security_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_persister_unittest.cc
diff --git a/chrome/browser/net/transport_security_persister_unittest.cc b/net/http/transport_security_persister_unittest.cc
similarity index 94%
rename from chrome/browser/net/transport_security_persister_unittest.cc
rename to net/http/transport_security_persister_unittest.cc
index f13577b053a0856c227bd7e0df89bda5292b0a4e..8c41f9e81daad844049fcef091eea1fcb38b4852 100644
--- a/chrome/browser/net/transport_security_persister_unittest.cc
+++ b/net/http/transport_security_persister_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/net/transport_security_persister.h"
+#include "net/http/transport_security_persister.h"
#include <map>
#include <string>
@@ -15,29 +15,28 @@
#include "net/http/transport_security_state.h"
#include "testing/gtest/include/gtest/gtest.h"
+using net::TransportSecurityPersister;
using net::TransportSecurityState;
class TransportSecurityPersisterTest : public testing::Test {
public:
- TransportSecurityPersisterTest()
- : message_loop_(base::MessageLoop::TYPE_IO) {
+ TransportSecurityPersisterTest() {
}
virtual ~TransportSecurityPersisterTest() {
- message_loop_.RunUntilIdle();
+ base::MessageLoopForIO::current()->RunUntilIdle();
}
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
persister_.reset(new TransportSecurityPersister(
- &state_, temp_dir_.path(), message_loop_.message_loop_proxy(), false));
+ &state_,
+ temp_dir_.path(),
+ base::MessageLoopForIO::current()->message_loop_proxy(),
+ false));
}
protected:
- // Ordering is important here. If member variables are not destroyed in the
- // right order, then DCHECKs will fail all over the place.
- base::MessageLoop message_loop_;
-
base::ScopedTempDir temp_dir_;
TransportSecurityState state_;
scoped_ptr<TransportSecurityPersister> persister_;
« no previous file with comments | « net/http/transport_security_persister.cc ('k') | net/http/transport_security_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698