parent
294d0ecc05
commit
ba496454b2
33 changed files with 76 additions and 622 deletions
@ -1,217 +0,0 @@ |
|||||||
/*
|
|
||||||
* |
|
||||||
* Copyright 2015, Google Inc. |
|
||||||
* All rights reserved. |
|
||||||
* |
|
||||||
* Redistribution and use in source and binary forms, with or without |
|
||||||
* modification, are permitted provided that the following conditions are |
|
||||||
* met: |
|
||||||
* |
|
||||||
* * Redistributions of source code must retain the above copyright |
|
||||||
* notice, this list of conditions and the following disclaimer. |
|
||||||
* * Redistributions in binary form must reproduce the above |
|
||||||
* copyright notice, this list of conditions and the following disclaimer |
|
||||||
* in the documentation and/or other materials provided with the |
|
||||||
* distribution. |
|
||||||
* * Neither the name of Google Inc. nor the names of its |
|
||||||
* contributors may be used to endorse or promote products derived from |
|
||||||
* this software without specific prior written permission. |
|
||||||
* |
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
||||||
* |
|
||||||
*/ |
|
||||||
|
|
||||||
/* Test gRPC event manager with a simple TCP upload server and client. */ |
|
||||||
#include "src/core/iomgr/alarm.h" |
|
||||||
|
|
||||||
#include <ctype.h> |
|
||||||
#include <errno.h> |
|
||||||
#include <fcntl.h> |
|
||||||
#include <stdio.h> |
|
||||||
#include <stdlib.h> |
|
||||||
#include <string.h> |
|
||||||
|
|
||||||
#include <grpc/grpc.h> |
|
||||||
#include <grpc/support/alloc.h> |
|
||||||
#include <grpc/support/log.h> |
|
||||||
#include <grpc/support/sync.h> |
|
||||||
#include <grpc/support/time.h> |
|
||||||
#include "test/core/util/test_config.h" |
|
||||||
|
|
||||||
#define SUCCESS_NOT_SET (-1) |
|
||||||
|
|
||||||
/* Dummy gRPC callback */ |
|
||||||
void no_op_cb(void *arg, int success) {} |
|
||||||
|
|
||||||
typedef struct { |
|
||||||
gpr_cv cv; |
|
||||||
gpr_mu mu; |
|
||||||
int counter; |
|
||||||
int done_success_ctr; |
|
||||||
int done_cancel_ctr; |
|
||||||
int done; |
|
||||||
gpr_event fcb_arg; |
|
||||||
int success; |
|
||||||
} alarm_arg; |
|
||||||
|
|
||||||
/* Called when an alarm expires. */ |
|
||||||
static void alarm_cb(void *arg /* alarm_arg */, int success, |
|
||||||
grpc_call_list *call_list) { |
|
||||||
alarm_arg *a = arg; |
|
||||||
gpr_mu_lock(&a->mu); |
|
||||||
if (success) { |
|
||||||
a->counter++; |
|
||||||
a->done_success_ctr++; |
|
||||||
} else { |
|
||||||
a->done_cancel_ctr++; |
|
||||||
} |
|
||||||
a->done = 1; |
|
||||||
a->success = success; |
|
||||||
gpr_cv_signal(&a->cv); |
|
||||||
gpr_mu_unlock(&a->mu); |
|
||||||
gpr_event_set((gpr_event *)arg, arg); |
|
||||||
} |
|
||||||
|
|
||||||
/* Test grpc_alarm add and cancel. */ |
|
||||||
static void test_grpc_alarm(void) { |
|
||||||
grpc_alarm alarm; |
|
||||||
grpc_alarm alarm_to_cancel; |
|
||||||
/* Timeout on the alarm cond. var, so make big enough to absorb time
|
|
||||||
deviations. Otherwise, operations after wait will not be properly ordered |
|
||||||
*/ |
|
||||||
gpr_timespec alarm_deadline; |
|
||||||
gpr_timespec followup_deadline; |
|
||||||
grpc_call_list call_list = GRPC_CALL_LIST_INIT; |
|
||||||
|
|
||||||
alarm_arg arg; |
|
||||||
alarm_arg arg2; |
|
||||||
void *fdone; |
|
||||||
|
|
||||||
grpc_init(); |
|
||||||
|
|
||||||
arg.counter = 0; |
|
||||||
arg.success = SUCCESS_NOT_SET; |
|
||||||
arg.done_success_ctr = 0; |
|
||||||
arg.done_cancel_ctr = 0; |
|
||||||
arg.done = 0; |
|
||||||
gpr_mu_init(&arg.mu); |
|
||||||
gpr_cv_init(&arg.cv); |
|
||||||
gpr_event_init(&arg.fcb_arg); |
|
||||||
|
|
||||||
grpc_alarm_init(&alarm, GRPC_TIMEOUT_MILLIS_TO_DEADLINE(100), alarm_cb, &arg, |
|
||||||
gpr_now(GPR_CLOCK_MONOTONIC), &call_list); |
|
||||||
|
|
||||||
alarm_deadline = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1); |
|
||||||
gpr_mu_lock(&arg.mu); |
|
||||||
while (arg.done == 0) { |
|
||||||
if (gpr_cv_wait(&arg.cv, &arg.mu, alarm_deadline)) { |
|
||||||
gpr_log(GPR_ERROR, "alarm deadline exceeded"); |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
gpr_mu_unlock(&arg.mu); |
|
||||||
|
|
||||||
followup_deadline = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5); |
|
||||||
fdone = gpr_event_wait(&arg.fcb_arg, followup_deadline); |
|
||||||
|
|
||||||
if (arg.counter != 1) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm callback not called"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg.done_success_ctr != 1) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm done callback not called with success"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg.done_cancel_ctr != 0) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm done callback called with cancel"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg.success == SUCCESS_NOT_SET) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm callback without status"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else { |
|
||||||
gpr_log(GPR_INFO, "Alarm callback called successfully"); |
|
||||||
} |
|
||||||
|
|
||||||
if (fdone != (void *)&arg.fcb_arg) { |
|
||||||
gpr_log(GPR_ERROR, "Followup callback #1 not invoked properly %p %p", fdone, |
|
||||||
&arg.fcb_arg); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} |
|
||||||
gpr_cv_destroy(&arg.cv); |
|
||||||
gpr_mu_destroy(&arg.mu); |
|
||||||
|
|
||||||
arg2.counter = 0; |
|
||||||
arg2.success = SUCCESS_NOT_SET; |
|
||||||
arg2.done_success_ctr = 0; |
|
||||||
arg2.done_cancel_ctr = 0; |
|
||||||
arg2.done = 0; |
|
||||||
gpr_mu_init(&arg2.mu); |
|
||||||
gpr_cv_init(&arg2.cv); |
|
||||||
|
|
||||||
gpr_event_init(&arg2.fcb_arg); |
|
||||||
|
|
||||||
grpc_alarm_init(&alarm_to_cancel, GRPC_TIMEOUT_MILLIS_TO_DEADLINE(100), |
|
||||||
alarm_cb, &arg2, gpr_now(GPR_CLOCK_MONOTONIC), &call_list); |
|
||||||
grpc_alarm_cancel(&alarm_to_cancel, &call_list); |
|
||||||
|
|
||||||
alarm_deadline = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1); |
|
||||||
gpr_mu_lock(&arg2.mu); |
|
||||||
while (arg2.done == 0) { |
|
||||||
gpr_cv_wait(&arg2.cv, &arg2.mu, alarm_deadline); |
|
||||||
} |
|
||||||
gpr_mu_unlock(&arg2.mu); |
|
||||||
|
|
||||||
gpr_log(GPR_INFO, "alarm done = %d", arg2.done); |
|
||||||
|
|
||||||
followup_deadline = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5); |
|
||||||
fdone = gpr_event_wait(&arg2.fcb_arg, followup_deadline); |
|
||||||
|
|
||||||
if (arg2.counter != arg2.done_success_ctr) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm callback called but didn't lead to done success"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg2.done_success_ctr && arg2.done_cancel_ctr) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm done callback called with success and cancel"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg2.done_cancel_ctr + arg2.done_success_ctr != 1) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm done callback called incorrect number of times"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg2.success == SUCCESS_NOT_SET) { |
|
||||||
gpr_log(GPR_ERROR, "Alarm callback without status"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} else if (arg2.done_success_ctr) { |
|
||||||
gpr_log(GPR_INFO, "Alarm callback executed before cancel"); |
|
||||||
gpr_log(GPR_INFO, "Current value of triggered is %d\n", |
|
||||||
alarm_to_cancel.triggered); |
|
||||||
} else if (arg2.done_cancel_ctr) { |
|
||||||
gpr_log(GPR_INFO, "Alarm callback canceled"); |
|
||||||
gpr_log(GPR_INFO, "Current value of triggered is %d\n", |
|
||||||
alarm_to_cancel.triggered); |
|
||||||
} else { |
|
||||||
gpr_log(GPR_ERROR, "Alarm cancel test should not be here"); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} |
|
||||||
|
|
||||||
if (fdone != (void *)&arg2.fcb_arg) { |
|
||||||
gpr_log(GPR_ERROR, "Followup callback #2 not invoked properly %p %p", fdone, |
|
||||||
&arg2.fcb_arg); |
|
||||||
GPR_ASSERT(0); |
|
||||||
} |
|
||||||
gpr_cv_destroy(&arg2.cv); |
|
||||||
gpr_mu_destroy(&arg2.mu); |
|
||||||
|
|
||||||
grpc_shutdown(); |
|
||||||
} |
|
||||||
|
|
||||||
int main(int argc, char **argv) { |
|
||||||
grpc_test_init(argc, argv); |
|
||||||
test_grpc_alarm(); |
|
||||||
return 0; |
|
||||||
} |
|
@ -1,172 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
||||||
<Import Project="..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies.openssl.props" Condition="Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\1.0.2.3.props')" /> |
|
||||||
<ItemGroup Label="ProjectConfigurations"> |
|
||||||
<ProjectConfiguration Include="Debug|Win32"> |
|
||||||
<Configuration>Debug</Configuration> |
|
||||||
<Platform>Win32</Platform> |
|
||||||
</ProjectConfiguration> |
|
||||||
<ProjectConfiguration Include="Debug|x64"> |
|
||||||
<Configuration>Debug</Configuration> |
|
||||||
<Platform>x64</Platform> |
|
||||||
</ProjectConfiguration> |
|
||||||
<ProjectConfiguration Include="Release|Win32"> |
|
||||||
<Configuration>Release</Configuration> |
|
||||||
<Platform>Win32</Platform> |
|
||||||
</ProjectConfiguration> |
|
||||||
<ProjectConfiguration Include="Release|x64"> |
|
||||||
<Configuration>Release</Configuration> |
|
||||||
<Platform>x64</Platform> |
|
||||||
</ProjectConfiguration> |
|
||||||
</ItemGroup> |
|
||||||
<PropertyGroup Label="Globals"> |
|
||||||
<ProjectGuid>{AFD362D7-0E2A-E700-1F27-9D90F76166DF}</ProjectGuid> |
|
||||||
</PropertyGroup> |
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
|
||||||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '10.0'" Label="Configuration"> |
|
||||||
<PlatformToolset>v100</PlatformToolset> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '11.0'" Label="Configuration"> |
|
||||||
<PlatformToolset>v110</PlatformToolset> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '12.0'" Label="Configuration"> |
|
||||||
<PlatformToolset>v120</PlatformToolset> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> |
|
||||||
<ConfigurationType>Application</ConfigurationType> |
|
||||||
<UseDebugLibraries>true</UseDebugLibraries> |
|
||||||
<CharacterSet>Unicode</CharacterSet> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration"> |
|
||||||
<ConfigurationType>Application</ConfigurationType> |
|
||||||
<UseDebugLibraries>false</UseDebugLibraries> |
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization> |
|
||||||
<CharacterSet>Unicode</CharacterSet> |
|
||||||
</PropertyGroup> |
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
|
||||||
<ImportGroup Label="ExtensionSettings"> |
|
||||||
</ImportGroup> |
|
||||||
<ImportGroup Label="PropertySheets"> |
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\global.props" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\openssl.props" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\winsock.props" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\zlib.props" /> |
|
||||||
</ImportGroup> |
|
||||||
<PropertyGroup Label="UserMacros" /> |
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> |
|
||||||
<TargetName>alarm_test</TargetName> |
|
||||||
<Linkage-grpc_dependencies_zlib>static</Linkage-grpc_dependencies_zlib> |
|
||||||
<Configuration-grpc_dependencies_zlib>Debug</Configuration-grpc_dependencies_zlib> |
|
||||||
<Configuration-grpc_dependencies_openssl>Debug</Configuration-grpc_dependencies_openssl> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> |
|
||||||
<TargetName>alarm_test</TargetName> |
|
||||||
<Linkage-grpc_dependencies_zlib>static</Linkage-grpc_dependencies_zlib> |
|
||||||
<Configuration-grpc_dependencies_zlib>Debug</Configuration-grpc_dependencies_zlib> |
|
||||||
<Configuration-grpc_dependencies_openssl>Debug</Configuration-grpc_dependencies_openssl> |
|
||||||
</PropertyGroup> |
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
|
||||||
<ClCompile> |
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader> |
|
||||||
<WarningLevel>Level3</WarningLevel> |
|
||||||
<Optimization>Disabled</Optimization> |
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_USE_32BIT_TIME_T;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
|
||||||
<SDLCheck>true</SDLCheck> |
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> |
|
||||||
</ClCompile> |
|
||||||
<Link> |
|
||||||
<SubSystem>Console</SubSystem> |
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation> |
|
||||||
</Link> |
|
||||||
</ItemDefinitionGroup> |
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
|
||||||
<ClCompile> |
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader> |
|
||||||
<WarningLevel>Level3</WarningLevel> |
|
||||||
<Optimization>Disabled</Optimization> |
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
|
||||||
<SDLCheck>true</SDLCheck> |
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> |
|
||||||
</ClCompile> |
|
||||||
<Link> |
|
||||||
<SubSystem>Console</SubSystem> |
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation> |
|
||||||
</Link> |
|
||||||
</ItemDefinitionGroup> |
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
|
||||||
<ClCompile> |
|
||||||
<WarningLevel>Level3</WarningLevel> |
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader> |
|
||||||
<Optimization>MaxSpeed</Optimization> |
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking> |
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions> |
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_USE_32BIT_TIME_T;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
|
||||||
<SDLCheck>true</SDLCheck> |
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary> |
|
||||||
</ClCompile> |
|
||||||
<Link> |
|
||||||
<SubSystem>Console</SubSystem> |
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation> |
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding> |
|
||||||
<OptimizeReferences>true</OptimizeReferences> |
|
||||||
</Link> |
|
||||||
</ItemDefinitionGroup> |
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
|
||||||
<ClCompile> |
|
||||||
<WarningLevel>Level3</WarningLevel> |
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader> |
|
||||||
<Optimization>MaxSpeed</Optimization> |
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking> |
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions> |
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
|
||||||
<SDLCheck>true</SDLCheck> |
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary> |
|
||||||
</ClCompile> |
|
||||||
<Link> |
|
||||||
<SubSystem>Console</SubSystem> |
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation> |
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding> |
|
||||||
<OptimizeReferences>true</OptimizeReferences> |
|
||||||
</Link> |
|
||||||
</ItemDefinitionGroup> |
|
||||||
<ItemGroup> |
|
||||||
<ClCompile Include="..\..\..\..\test\core\iomgr\alarm_test.c"> |
|
||||||
</ClCompile> |
|
||||||
</ItemGroup> |
|
||||||
<ItemGroup> |
|
||||||
<ProjectReference Include="..\..\..\..\vsprojects\vcxproj\.\grpc_test_util\grpc_test_util.vcxproj"> |
|
||||||
<Project>{17BCAFC0-5FDC-4C94-AEB9-95F3E220614B}</Project> |
|
||||||
</ProjectReference> |
|
||||||
<ProjectReference Include="..\..\..\..\vsprojects\vcxproj\.\grpc\grpc.vcxproj"> |
|
||||||
<Project>{29D16885-7228-4C31-81ED-5F9187C7F2A9}</Project> |
|
||||||
</ProjectReference> |
|
||||||
<ProjectReference Include="..\..\..\..\vsprojects\vcxproj\.\gpr_test_util\gpr_test_util.vcxproj"> |
|
||||||
<Project>{EAB0A629-17A9-44DB-B5FF-E91A721FE037}</Project> |
|
||||||
</ProjectReference> |
|
||||||
<ProjectReference Include="..\..\..\..\vsprojects\vcxproj\.\gpr\gpr.vcxproj"> |
|
||||||
<Project>{B23D3D1A-9438-4EDA-BEB6-9A0A03D17792}</Project> |
|
||||||
</ProjectReference> |
|
||||||
</ItemGroup> |
|
||||||
<ItemGroup> |
|
||||||
<None Include="packages.config" /> |
|
||||||
</ItemGroup> |
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
|
||||||
<ImportGroup Label="ExtensionTargets"> |
|
||||||
<Import Project="..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets" Condition="Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies\grpc.dependencies.zlib.targets')" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets" Condition="Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies\grpc.dependencies.zlib.targets')" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.redist.1.0.2.3\build\native\grpc.dependencies.openssl.redist.targets" Condition="Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.redist.1.0.2.3\build\native\grpc.dependencies\grpc.dependencies.openssl.targets')" /> |
|
||||||
<Import Project="..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies.openssl.targets" Condition="Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies\grpc.dependencies.openssl.targets')" /> |
|
||||||
</ImportGroup> |
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
|
||||||
<PropertyGroup> |
|
||||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
|
||||||
</PropertyGroup> |
|
||||||
<Error Condition="!Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets')" /> |
|
||||||
<Error Condition="!Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\vsprojects\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets')" /> |
|
||||||
<Error Condition="!Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.redist.1.0.2.3\build\native\grpc.dependencies.openssl.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.redist.1.0.2.3\build\native\grpc.dependencies.openssl.redist.targets')" /> |
|
||||||
<Error Condition="!Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies.openssl.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies.openssl.props')" /> |
|
||||||
<Error Condition="!Exists('..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies.openssl.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\vsprojects\packages\grpc.dependencies.openssl.1.0.2.3\build\native\grpc.dependencies.openssl.targets')" /> |
|
||||||
</Target> |
|
||||||
</Project> |
|
||||||
|
|
@ -1,21 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
||||||
<ItemGroup> |
|
||||||
<ClCompile Include="..\..\..\..\test\core\iomgr\alarm_test.c"> |
|
||||||
<Filter>test\core\iomgr</Filter> |
|
||||||
</ClCompile> |
|
||||||
</ItemGroup> |
|
||||||
|
|
||||||
<ItemGroup> |
|
||||||
<Filter Include="test"> |
|
||||||
<UniqueIdentifier>{ce8dc749-635b-4486-70d6-6bdf52297d09}</UniqueIdentifier> |
|
||||||
</Filter> |
|
||||||
<Filter Include="test\core"> |
|
||||||
<UniqueIdentifier>{c214d1e9-ebce-1040-28fa-e286dbb702d9}</UniqueIdentifier> |
|
||||||
</Filter> |
|
||||||
<Filter Include="test\core\iomgr"> |
|
||||||
<UniqueIdentifier>{2b84eb4a-2ede-2e5b-e422-2931482ae1c0}</UniqueIdentifier> |
|
||||||
</Filter> |
|
||||||
</ItemGroup> |
|
||||||
</Project> |
|
||||||
|
|
Loading…
Reference in new issue