LCOV - code coverage report
Current view: directory - src/shared/platform - platform_init.c (source / functions) Found Hit Coverage
Test: coverage.lcov Lines: 15 14 93.3 %
Date: 2014-09-25 Functions: 0 0 -

       1                 : /*
       2                 :  * Copyright (c) 2012 The Native Client Authors. All rights reserved.
       3                 :  * Use of this source code is governed by a BSD-style license that can be
       4                 :  * found in the LICENSE file.
       5                 :  */
       6                 : 
       7                 : #include "native_client/src/shared/platform/nacl_clock.h"
       8                 : #include "native_client/src/shared/platform/nacl_log.h"
       9                 : #include "native_client/src/shared/platform/nacl_time.h"
      10                 : #include "native_client/src/shared/platform/nacl_secure_random.h"
      11                 : #include "native_client/src/shared/platform/nacl_global_secure_random.h"
      12                 : 
      13              15 : void NaClPlatformInit(void) {
      14              15 :   NaClLogModuleInit();
      15              15 :   NaClTimeInit();
      16              15 :   if (!NaClClockInit()) {
      17               0 :     NaClLog(LOG_FATAL, "NaClPlatformInit: NaClClockInit failed\n");
      18                 :   }
      19              15 :   NaClSecureRngModuleInit();
      20              15 :   NaClGlobalSecureRngInit();
      21              15 : }
      22                 : 
      23              11 : void NaClPlatformFini(void) {
      24              11 :   NaClGlobalSecureRngFini();
      25              11 :   NaClSecureRngModuleFini();
      26              11 :   NaClClockFini();
      27              11 :   NaClTimeFini();
      28              11 :   NaClLogModuleFini();
      29              11 : }

Generated by: LCOV version 1.7