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

Unified Diff: net/cert/test_root_certs_android.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months 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/cert/test_root_certs.cc ('k') | net/cert/test_root_certs_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/test_root_certs_android.cc
diff --git a/net/cert/test_root_certs_android.cc b/net/cert/test_root_certs_android.cc
deleted file mode 100644
index 73588270e9557b1d0d795ea984a04c49b8a7d3a1..0000000000000000000000000000000000000000
--- a/net/cert/test_root_certs_android.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/cert/test_root_certs.h"
-
-#include "base/location.h"
-#include "base/logging.h"
-#include "net/android/network_library.h"
-#include "net/cert/x509_certificate.h"
-
-namespace net {
-
-bool TestRootCerts::Add(X509Certificate* certificate) {
- std::string cert_bytes;
- if (!X509Certificate::GetDEREncoded(certificate->os_cert_handle(),
- &cert_bytes))
- return false;
- android::AddTestRootCertificate(
- reinterpret_cast<const uint8*>(cert_bytes.data()), cert_bytes.size());
- empty_ = false;
- return true;
-}
-
-void TestRootCerts::Clear() {
- if (empty_)
- return;
-
- android::ClearTestRootCertificates();
- empty_ = true;
-}
-
-bool TestRootCerts::IsEmpty() const {
- return empty_;
-}
-
-TestRootCerts::~TestRootCerts() {}
-
-void TestRootCerts::Init() {
- empty_ = true;
-}
-
-} // namespace net
« no previous file with comments | « net/cert/test_root_certs.cc ('k') | net/cert/test_root_certs_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698