Coverage for /Syzygy/common/rpc/helpers_unittest.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
100.0%550.C++test

Line-by-line coverage:

   1    :  // Copyright 2014 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  // Unit tests for RPC helpers.
  16    :  
  17    :  #include "syzygy/common/rpc/helpers.h"
  18    :  
  19    :  #include "base/strings/string16.h"
  20    :  #include "gtest/gtest.h"
  21    :  
  22    :  namespace common {
  23    :  namespace rpc {
  24    :  
  25  E :  TEST(RpcHelpersTest, AsRpcWstr) {
  26  E :    base::char16 a_string[] = L"Hello world.";
  27    :    // As this helper only amounts to a reinterpret cast, the real test is that it
  28    :    // compiles.
  29  E :    RPC_WSTR an_rpc_wstr = AsRpcWstr(a_string);
  30  E :    EXPECT_NE(static_cast<RPC_WSTR>(nullptr), an_rpc_wstr);
  31  E :  }
  32    :  
  33    :  }  // namespace rpc
  34    :  }  // namespace common

Coverage information generated Thu Jan 14 17:40:38 2016.