Coverage Report

Created: 2025-07-01 06:25

/src/nss/fuzz/targets/lib/base/database.h
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#ifndef BASE_DATABASE_H_
6
#define BASE_DATABASE_H_
7
8
#include <cassert>
9
10
#include "nss.h"
11
12
// TODO(mdauer): Add constructor for initializing with DB.
13
class NSSDatabase {
14
 public:
15
0
  NSSDatabase() { assert(NSS_NoDB_Init(nullptr) == SECSuccess); }
16
0
  ~NSSDatabase() { assert(NSS_Shutdown() == SECSuccess); }
17
};
18
19
#endif  // BASE_DATABASE_H_