Chromium Code Reviews| Index: net/cert/ct_ev_whitelist_unittest.cc |
| diff --git a/net/cert/ct_ev_whitelist_unittest.cc b/net/cert/ct_ev_whitelist_unittest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bb84431ecbccadf7622b88377fd262bb0cfb978c |
| --- /dev/null |
| +++ b/net/cert/ct_ev_whitelist_unittest.cc |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2014 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/ct_ev_whitelist.h" |
| + |
| +#include <string> |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "testing/gtest/include/gtest/gtest.h" |
| + |
| +namespace net { |
| + |
| +namespace ct { |
| + |
| +TEST(DefaultEVCertsWhitelistTest, DefaultsToWhitelistingHash) { |
| + scoped_refptr<EVCertsWhitelist> whitelist(GetDefaultEVCertsWhitelist()); |
| + EXPECT_TRUE(whitelist->IsValid()); |
| + EXPECT_TRUE(whitelist->ContainsCertificateHash("")); |
|
Ryan Sleevi
2014/10/01 20:15:42
"" -> std::string
Eran Messeri
2014/10/03 12:00:11
Removed the whole test since the default instance
|
| +} |
| + |
| +} // namespace ct |
| + |
| +} // namespace net |