summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview_unittest.cpp
blob: 27680b3d4e135f91907cadcbcb64c5613f4f3aaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 PDFium 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 "public/fpdfview.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "testing/test_support.h"

TEST(FPDFView, DoubleInit) {
  FPDF_InitLibrary();
  FPDF_InitLibrary();
  FPDF_DestroyLibrary();
}

TEST(FPDFView, DoubleDestroy) {
  FPDF_InitLibrary();
  FPDF_DestroyLibrary();
  FPDF_DestroyLibrary();
}