Permalink
Browse files

Libprotection-grammars replaced with libprotection-common. Paths at u…

…nit tests updated.
  • Loading branch information...
Vladimir Kochetkov
Vladimir Kochetkov committed Dec 1, 2017
1 parent ab80eb0 commit 44b4e8d5adbc436f2d07b088011749df742c0550
Showing with 12 additions and 278 deletions.
  1. +4 −4 .gitmodules
  2. +3 −2 sources/LibProtection.Injections.UnitTests/LibProtection.Injections.UnitTests.csproj
  3. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.filepath
  4. +0 −7 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.filepath.tokens
  5. +0 −6 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.html
  6. +0 −61 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.html.tokens
  7. +0 −7 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.javascript
  8. +0 −44 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.javascript.tokens
  9. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.sql
  10. +0 −25 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.sql.tokens
  11. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.url
  12. +0 −26 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/general.url.tokens
  13. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/ntfs-attributes.filepath
  14. +0 −9 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/ntfs-attributes.filepath.tokens
  15. BIN sources/LibProtection.Injections.UnitTests/TokenizationTestCases/nullbyte.filepath
  16. BIN sources/LibProtection.Injections.UnitTests/TokenizationTestCases/nullbyte.filepath.tokens
  17. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/slashes.filepath
  18. +0 −7 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/slashes.filepath.tokens
  19. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/traversal.filepath
  20. +0 −19 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/traversal.filepath.tokens
  21. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/unc.filepath
  22. +0 −10 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/unc.filepath.tokens
  23. +0 −2 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/unclosed-quotes.html
  24. +0 −25 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/unclosed-quotes.html.tokens
  25. +0 −1 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/unclosed-tag.html
  26. +0 −11 sources/LibProtection.Injections.UnitTests/TokenizationTestCases/unclosed-tag.html.tokens
  27. +1 −1 sources/LibProtection.Injections.UnitTests/TokenizationTests.cs
  28. +3 −3 sources/LibProtection.Injections/LibProtection.Injections.csproj
  29. +1 −0 submodules/libprotection-common
  30. +0 −1 submodules/libprotection-grammars
View
@@ -1,4 +1,4 @@
[submodule "submodules/libprotection-grammars"]
path = submodules/libprotection-grammars
url = https://github.com/LibProtection/libprotection-grammars.git
branch = dev
[submodule "submodules/libprotection-common"]
path = submodules/libprotection-common
url = https://github.com/LibProtection/libprotection-common.git
branch = dev
@@ -55,7 +55,8 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="TokenizationTestCases\*">
<None Include="..\..\submodules\libprotection-common\test-cases\**\*.*">
<Link>TestCases\%(RecursiveDir)%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
@@ -70,6 +71,6 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>rd /s /q "$(TargetDir)\TokenizationTestCases"</PreBuildEvent>
<PreBuildEvent>rd /s /q "$(TargetDir)\TestCases"</PreBuildEvent>
</PropertyGroup>
</Project>

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -142,7 +142,7 @@ internal static class TokenizationTestCases
private static IEnumerable TestCases(string languageName)
{
var casesDirectory =
Path.Combine(TestContext.CurrentContext.TestDirectory, "TokenizationTestCases");
Path.Combine(TestContext.CurrentContext.TestDirectory, "TestCases\\tokenization");
foreach (var fileName in Directory.GetFiles(casesDirectory, $"*.{languageName}"))
{
@@ -88,19 +88,19 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Antlr4 Include="..\..\submodules\libprotection-grammars\Antlr\HTMLLexer.g4">
<Antlr4 Include="..\..\submodules\libprotection-common\grammars\HTMLLexer.g4">
<Link>Languages\Html\HTMLLexer.g4</Link>
<CustomToolNamespace>LibProtection.Injections.Internals</CustomToolNamespace>
<Listener>False</Listener>
<Visitor>False</Visitor>
</Antlr4>
<Antlr4 Include="..\..\submodules\libprotection-grammars\Antlr\SQLLexer.g4">
<Antlr4 Include="..\..\submodules\libprotection-common\grammars\SQLLexer.g4">
<Link>Languages\Sql\SQLLexer.g4</Link>
<CustomToolNamespace>LibProtection.Injections.Internals</CustomToolNamespace>
<Listener>False</Listener>
<Visitor>False</Visitor>
</Antlr4>
<Antlr4 Include="..\..\submodules\libprotection-grammars\Antlr\JavaScriptCSharp.g4">
<Antlr4 Include="..\..\submodules\libprotection-common\grammars\JavaScriptCSharp.g4">
<Link>Languages\JavaScript\JavaScriptCSharp.g4</Link>
<CustomToolNamespace>LibProtection.Injections.Internals</CustomToolNamespace>
<Listener>False</Listener>
Submodule libprotection-grammars deleted from 759aa5

0 comments on commit 44b4e8d

Please sign in to comment.