diff --git a/WORKSPACE b/WORKSPACE index ecf7766323ee3..e0be27bfa02ab 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -68,6 +68,13 @@ dotnet_nuget_new( build_file = "//third_party/dotnet/nuget/packages:moq.bzl" ) +dotnet_nuget_new( + name = "benderproxy", + package = "benderproxy", + version = "1.0.0", + build_file = "//third_party/dotnet/nuget/packages:benderproxy.bzl" +) + dotnet_nuget_new( name = "castle.core", package = "castle.core", diff --git a/dotnet/test/common/ProxySettingTest.cs b/dotnet/test/common/ProxySettingTest.cs index 7add0866b7d0e..51f0a535a8041 100644 --- a/dotnet/test/common/ProxySettingTest.cs +++ b/dotnet/test/common/ProxySettingTest.cs @@ -5,8 +5,8 @@ using System.Net.Sockets; using System.Text; using System.Threading; -using FryProxy; -using FryProxy.Writers; +using BenderProxy; +using BenderProxy.Writers; using NUnit.Framework; using OpenQA.Selenium.Environment; using OpenQA.Selenium.IE; @@ -338,7 +338,7 @@ public Proxy AsProxy() return proxy; } - private void OnServerLog(object sender, FryProxy.Logging.LogEventArgs e) + private void OnServerLog(object sender, BenderProxy.Logging.LogEventArgs e) { Console.WriteLine(e.LogMessage); } @@ -368,7 +368,7 @@ private void OverwriteRequestedContent(ProcessingContext context) context.StopProcessing(); MemoryStream responseStream = new MemoryStream(Encoding.UTF8.GetBytes(pageContent)); - var responseHeader = new FryProxy.Headers.HttpResponseHeader(200, "OK", "1.1"); + var responseHeader = new BenderProxy.Headers.HttpResponseHeader(200, "OK", "1.1"); responseHeader.EntityHeaders.ContentType = "text/html"; responseHeader.EntityHeaders.ContentEncoding = "utf-8"; responseHeader.EntityHeaders.ContentLength = responseStream.Length; diff --git a/dotnet/test/common/WebDriver.Common.Tests.csproj b/dotnet/test/common/WebDriver.Common.Tests.csproj index f2298333e6b5a..c34cc46f4533e 100644 --- a/dotnet/test/common/WebDriver.Common.Tests.csproj +++ b/dotnet/test/common/WebDriver.Common.Tests.csproj @@ -31,9 +31,9 @@ - + - + diff --git a/third_party/dotnet/nuget/packages/BUILD.bazel b/third_party/dotnet/nuget/packages/BUILD.bazel index efa51252fd484..52f767d1e4fa8 100644 --- a/third_party/dotnet/nuget/packages/BUILD.bazel +++ b/third_party/dotnet/nuget/packages/BUILD.bazel @@ -1,7 +1,8 @@ exports_files([ - "newtonsoft.json.bzl", + "benderproxy.bzl", + "castle.core.bzl", "moq.bzl", + "newtonsoft.json.bzl", "nunit.bzl", - "castle.core.bzl", "system.threading.tasks.extensions.bzl" ]) diff --git a/third_party/dotnet/nuget/packages/benderproxy.1.0.0.nupkg b/third_party/dotnet/nuget/packages/benderproxy.1.0.0.nupkg new file mode 100644 index 0000000000000..5f2e0f7d360c9 Binary files /dev/null and b/third_party/dotnet/nuget/packages/benderproxy.1.0.0.nupkg differ diff --git a/third_party/dotnet/nuget/packages/benderproxy.bzl b/third_party/dotnet/nuget/packages/benderproxy.bzl new file mode 100644 index 0000000000000..2583c8a298493 --- /dev/null +++ b/third_party/dotnet/nuget/packages/benderproxy.bzl @@ -0,0 +1,22 @@ +package(default_visibility = [ "//visibility:public" ]) +load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "net_import_library", "core_import_library") + +net_import_library( + name = "net45", + src = "lib/net45/BenderProxy.dll", +) + +net_import_library( + name = "net46", + src = "lib/net46/BenderProxy.dll", +) + +net_import_library( + name = "net47", + src = "lib/net47/BenderProxy.dll", +) + +core_import_library( + name = "netcore", + src = "lib/netstandard15/BenderProxy.dll" +) diff --git a/third_party/dotnet/nuget/packages/fryproxy.1.3.0.nupkg b/third_party/dotnet/nuget/packages/fryproxy.1.3.0.nupkg deleted file mode 100644 index d3dfa9151946f..0000000000000 Binary files a/third_party/dotnet/nuget/packages/fryproxy.1.3.0.nupkg and /dev/null differ