LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dom/bindings - AudioChannelBinding.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 8 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM AudioChannel.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #include "AudioChannelBinding.h"
       4             : #include "jsapi.h"
       5             : #include "mozilla/dom/BindingDeclarations.h"
       6             : #include "mozilla/dom/NonRefcountedDOMObject.h"
       7             : 
       8             : namespace mozilla {
       9             : namespace dom {
      10             : 
      11             : namespace AudioChannelValues {
      12             : extern const EnumEntry strings[9] = {
      13             :   {"normal", 6},
      14             :   {"content", 7},
      15             :   {"notification", 12},
      16             :   {"alarm", 5},
      17             :   {"telephony", 9},
      18             :   {"ringer", 6},
      19             :   {"publicnotification", 18},
      20             :   {"system", 6},
      21             :   { nullptr, 0 }
      22             : };
      23             : } // namespace AudioChannelValues
      24             : 
      25             : bool
      26           0 : ToJSValue(JSContext* aCx, AudioChannel aArgument, JS::MutableHandle<JS::Value> aValue)
      27             : {
      28           0 :   MOZ_ASSERT(uint32_t(aArgument) < ArrayLength(AudioChannelValues::strings));
      29             :   JSString* resultStr =
      30           0 :     JS_NewStringCopyN(aCx, AudioChannelValues::strings[uint32_t(aArgument)].value,
      31           0 :                       AudioChannelValues::strings[uint32_t(aArgument)].length);
      32           0 :   if (!resultStr) {
      33           0 :     return false;
      34             :   }
      35           0 :   aValue.setString(resultStr);
      36           0 :   return true;
      37             : }
      38             : 
      39             : 
      40             : } // namespace dom
      41             : } // namespace mozilla

Generated by: LCOV version 1.13