1 // Copyright 2011 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/cert/test_root_certs.h" 6 7 #include "base/location.h" 8 #include "net/android/network_library.h" 9 #include "net/cert/x509_certificate.h" 10 #include "third_party/boringssl/src/include/openssl/pool.h" 11 12 namespace net { 13 AddImpl(X509Certificate * certificate)14bool TestRootCerts::AddImpl(X509Certificate* certificate) { 15 android::AddTestRootCertificate(certificate->cert_span()); 16 return true; 17 } 18 ClearImpl()19void TestRootCerts::ClearImpl() { 20 if (IsEmpty()) 21 return; 22 23 android::ClearTestRootCertificates(); 24 } 25 26 TestRootCerts::~TestRootCerts() = default; 27 Init()28void TestRootCerts::Init() {} 29 30 } // namespace net 31