</EmbeddedResource>\r
</ItemGroup>\r
<ItemGroup>\r
- <ProjectReference Include="..\HandBrake.Interop\HandBrakeInterop\HandBrakeInterop.csproj">\r
+ <ProjectReference Include="..\HandBrake.Interop\HandBrakeInterop\HandBrake.Interop.csproj">\r
<Project>{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}</Project>\r
- <Name>HandBrakeInterop</Name>\r
+ <Name>HandBrake.Interop</Name>\r
</ProjectReference>\r
</ItemGroup>\r
<ItemGroup />\r
+++ /dev/null
-using System;\r
-using System.Collections.Generic;\r
-using System.IO;\r
-using System.Linq;\r
-using System.Text;\r
-using System.Xml;\r
-using System.Xml.Linq;\r
-using System.Xml.Serialization;\r
-using HandBrake.Interop;\r
-using HandBrake.Interop.Model;\r
-\r
-namespace HandBrakeInterop.Test\r
-{\r
- public static class EncodeJobsPersist\r
- {\r
- private static XmlSerializer xmlSerializer = new XmlSerializer(typeof(EncodeJob));\r
-\r
- public static EncodeJob GetJob(string jobName)\r
- {\r
- XDocument doc = XDocument.Load(jobName + ".xml");\r
- using (XmlReader reader = doc.CreateReader())\r
- {\r
- var job = xmlSerializer.Deserialize(reader) as EncodeJob;\r
-\r
-\r
-\r
- return job;\r
- }\r
- }\r
- }\r
-}\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
- <PropertyGroup>\r
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
- <ProductVersion>\r
- </ProductVersion>\r
- <SchemaVersion>2.0</SchemaVersion>\r
- <ProjectGuid>{D721824C-CAFA-40B1-83C9-83E4B1215D60}</ProjectGuid>\r
- <OutputType>Library</OutputType>\r
- <AppDesignerFolder>Properties</AppDesignerFolder>\r
- <RootNamespace>HandBrakeInterop.Test</RootNamespace>\r
- <AssemblyName>HandBrakeInterop.Test</AssemblyName>\r
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>\r
- <FileAlignment>512</FileAlignment>\r
- <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
- <DebugSymbols>true</DebugSymbols>\r
- <DebugType>full</DebugType>\r
- <Optimize>false</Optimize>\r
- <OutputPath>bin\Debug\</OutputPath>\r
- <DefineConstants>DEBUG;TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
- <DebugType>pdbonly</DebugType>\r
- <Optimize>true</Optimize>\r
- <OutputPath>bin\Release\</OutputPath>\r
- <DefineConstants>TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <ItemGroup>\r
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
- <Reference Include="System" />\r
- <Reference Include="System.Core">\r
- <RequiredTargetFramework>3.5</RequiredTargetFramework>\r
- </Reference>\r
- <Reference Include="System.Xml" />\r
- <Reference Include="System.Xml.Linq" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">\r
- <Visible>False</Visible>\r
- </CodeAnalysisDependentAssemblyPaths>\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Compile Include="EncodeJobsPersist.cs" />\r
- <Compile Include="Properties\AssemblyInfo.cs" />\r
- <Compile Include="TestEncodes.cs" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <ProjectReference Include="..\HandBrakeInterop\HandBrakeInterop.csproj">\r
- <Project>{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}</Project>\r
- <Name>HandBrakeInterop</Name>\r
- </ProjectReference>\r
- </ItemGroup>\r
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />\r
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
- Other similar extension points exist, see Microsoft.Common.targets.\r
- <Target Name="BeforeBuild">\r
- </Target>\r
- <Target Name="AfterBuild">\r
- </Target>\r
- -->\r
-</Project>
\ No newline at end of file
+++ /dev/null
-using System.Reflection;\r
-using System.Runtime.CompilerServices;\r
-using System.Runtime.InteropServices;\r
-\r
-// General Information about an assembly is controlled through the following \r
-// set of attributes. Change these attribute values to modify the information\r
-// associated with an assembly.\r
-[assembly: AssemblyTitle("HandBrakeInterop.Test")]\r
-[assembly: AssemblyDescription("")]\r
-[assembly: AssemblyConfiguration("")]\r
-[assembly: AssemblyCompany("Microsoft")]\r
-[assembly: AssemblyProduct("HandBrakeInterop.Test")]\r
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]\r
-[assembly: AssemblyTrademark("")]\r
-[assembly: AssemblyCulture("")]\r
-\r
-// Setting ComVisible to false makes the types in this assembly not visible \r
-// to COM components. If you need to access a type in this assembly from \r
-// COM, set the ComVisible attribute to true on that type.\r
-[assembly: ComVisible(false)]\r
-\r
-// The following GUID is for the ID of the typelib if this project is exposed to COM\r
-[assembly: Guid("2731c894-c1fc-4690-9557-aa56591b17ab")]\r
-\r
-// Version information for an assembly consists of the following four values:\r
-//\r
-// Major Version\r
-// Minor Version \r
-// Build Number\r
-// Revision\r
-//\r
-// You can specify all the values or you can default the Build and Revision Numbers \r
-// by using the '*' as shown below:\r
-[assembly: AssemblyVersion("1.0.0.0")]\r
-[assembly: AssemblyFileVersion("1.0.0.0")]\r
+++ /dev/null
-using System;\r
-using System.IO;\r
-using System.Text;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Threading;\r
-using HandBrake.Interop;\r
-using HandBrake.Interop.Model;\r
-using HandBrake.Interop.Model.Encoding;\r
-using Microsoft.VisualStudio.TestTools.UnitTesting;\r
-\r
-namespace HandBrakeInterop.Test\r
-{\r
- [TestClass]\r
- public class TestEncodes\r
- {\r
- public const string OutputVideoDirectoryName = "OutputVideos";\r
- private static readonly string OutputVideoDirectory = Path.Combine(Environment.CurrentDirectory, OutputVideoDirectoryName);\r
-\r
- private ManualResetEvent resetEvent = new ManualResetEvent(false);\r
-\r
- [ClassInitialize]\r
- public static void Init(TestContext context)\r
- {\r
- EnsureOutputVideoDirectoryExists();\r
-\r
- FileInfo[] files = new DirectoryInfo(OutputVideoDirectory).GetFiles();\r
- foreach (FileInfo file in files)\r
- {\r
- file.Delete();\r
- }\r
- }\r
-\r
- [TestMethod]\r
- public void Normal()\r
- {\r
- this.RunJob("Normal");\r
- }\r
-\r
- private void RunJob(string jobName)\r
- {\r
- this.resetEvent.Reset();\r
-\r
- EncodeJob job = EncodeJobsPersist.GetJob("Normal");\r
-\r
- if (job.SourceType == SourceType.VideoFolder)\r
- {\r
- job.SourcePath = Path.Combine(Environment.CurrentDirectory, Path.GetFileName(job.SourcePath));\r
- }\r
-\r
- if (job.SourceType == SourceType.File)\r
- {\r
- job.SourcePath = Path.Combine(Environment.CurrentDirectory, Path.GetFileName(job.SourcePath));\r
- }
-
- string extension;
- if (job.EncodingProfile.OutputFormat == Container.Mkv)
- {
- extension = ".mkv";
- }
- else\r
- {\r
- extension = ".mp4";\r
- }\r
-\r
- job.OutputPath = Path.Combine(OutputVideoDirectory, jobName + extension);\r
-\r
- var instance = new HandBrakeInstance();\r
- instance.Initialize(0);\r
- instance.ScanCompleted += (sender, e) =>\r
- {\r
- this.resetEvent.Set();\r
- };\r
-\r
- instance.StartScan(job.SourcePath, 10);\r
- this.resetEvent.WaitOne();\r
-\r
- this.resetEvent.Reset();\r
- instance.EncodeCompleted += (sender, e) =>\r
- {\r
- Assert.IsFalse(e.Error);\r
- this.resetEvent.Set();\r
- };\r
-\r
- instance.StartEncode(job);\r
- this.resetEvent.WaitOne();\r
-\r
- Assert.IsTrue(File.Exists(job.OutputPath));\r
-\r
- var fileInfo = new FileInfo(job.OutputPath);\r
- Assert.IsTrue(fileInfo.Length > 1024);\r
- }\r
-\r
- private static void EnsureOutputVideoDirectoryExists()\r
- {\r
- if (!Directory.Exists(OutputVideoDirectory))\r
- {\r
- Directory.CreateDirectory(OutputVideoDirectory);\r
- }\r
- }\r
- }\r
-}\r
+++ /dev/null
-\r
-Microsoft Visual Studio Solution File, Format Version 11.00\r
-# Visual Studio 2010\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeInterop", "HandBrakeInterop\HandBrakeInterop.csproj", "{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}"\r
-EndProject\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeInterop.Test", "HandBrakeInterop.Test\HandBrakeInterop.Test.csproj", "{D721824C-CAFA-40B1-83C9-83E4B1215D60}"\r
-EndProject\r
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F9A6B796-8476-4F7D-BD4E-A1B73A42E2F7}"\r
- ProjectSection(SolutionItems) = preProject\r
- HandBrakeInterop.vsmdi = HandBrakeInterop.vsmdi\r
- Local.testsettings = Local.testsettings\r
- EndProjectSection\r
-EndProject\r
-Global\r
- GlobalSection(TestCaseManagementSettings) = postSolution\r
- CategoryFile = HandBrakeInterop.vsmdi\r
- EndGlobalSection\r
- GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
- Debug|Mixed Platforms = Debug|Mixed Platforms\r
- Debug|x64 = Debug|x64\r
- Debug|x86 = Debug|x86\r
- Release|Mixed Platforms = Release|Mixed Platforms\r
- Release|x64 = Release|x64\r
- Release|x86 = Release|x86\r
- EndGlobalSection\r
- GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|Mixed Platforms.ActiveCfg = Debug|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|Mixed Platforms.Build.0 = Debug|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x64.ActiveCfg = Debug|x64\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x64.Build.0 = Debug|x64\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x86.ActiveCfg = Debug|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x86.Build.0 = Debug|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|Mixed Platforms.ActiveCfg = Release|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|Mixed Platforms.Build.0 = Release|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x64.ActiveCfg = Release|x64\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x64.Build.0 = Release|x64\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x86.ActiveCfg = Release|x86\r
- {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x86.Build.0 = Release|x86\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|x64.ActiveCfg = Debug|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|x64.Build.0 = Debug|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|x86.ActiveCfg = Debug|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|Mixed Platforms.Build.0 = Release|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|x64.ActiveCfg = Release|Any CPU\r
- {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|x86.ActiveCfg = Release|Any CPU\r
- EndGlobalSection\r
- GlobalSection(SolutionProperties) = preSolution\r
- HideSolutionNode = FALSE\r
- EndGlobalSection\r
-EndGlobal\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">\r
- <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">\r
- <RunConfiguration id="5e2e1c3b-c045-4781-88b7-8fd6b6c6596b" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
- </TestList>\r
-</TestLists>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<TestSettings name="Local" id="5e2e1c3b-c045-4781-88b7-8fd6b6c6596b" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">\r
- <Description>These are default test settings for a local test run.</Description>\r
- <Deployment>\r
- <DeploymentItem filename="..\Lib\x64\hb.dll" />\r
- <DeploymentItem filename="HandBrakeInterop.Test\TestFiles\Videos\" />\r
- <DeploymentItem filename="HandBrakeInterop.Test\TestFiles\Jobs\" />\r
- </Deployment>\r
- <Execution hostProcessPlatform="MSIL">\r
- <TestTypeSpecific>\r
- <UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">\r
- <AssemblyResolution>\r
- <TestDirectory useLoadContext="true" />\r
- </AssemblyResolution>\r
- </UnitTestRunConfig>\r
- </TestTypeSpecific>\r
- <AgentRule name="LocalMachineDefaultRole">\r
- </AgentRule>\r
- </Execution>\r
-</TestSettings>
\ No newline at end of file
\r
Microsoft Visual Studio Solution File, Format Version 12.00\r
# Visual Studio 2013\r
-VisualStudioVersion = 12.0.30723.0\r
+VisualStudioVersion = 12.0.31101.0\r
MinimumVisualStudioVersion = 10.0.40219.1\r
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrake.ApplicationServices", "HandBrake.ApplicationServices\HandBrake.ApplicationServices.csproj", "{087A2BA8-BAC2-4577-A46F-07FF9D420016}"\r
EndProject\r
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeWPF", "HandBrakeWPF\HandBrakeWPF.csproj", "{DADE66CB-0E12-4959-ADE5-0ACD31D27C59}"\r
EndProject\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeInterop", "HandBrake.Interop\HandBrakeInterop\HandBrakeInterop.csproj", "{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}"\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrake.Interop", "HandBrake.Interop\HandBrakeInterop\HandBrake.Interop.csproj", "{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}"\r
EndProject\r
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5CB7BC74-449C-4E95-98AB-E1E4387E514B}"\r
ProjectSection(SolutionItems) = preProject\r
<Project>{087A2BA8-BAC2-4577-A46F-07FF9D420016}</Project>\r
<Name>HandBrake.ApplicationServices</Name>\r
</ProjectReference>\r
- <ProjectReference Include="..\HandBrake.Interop\HandBrakeInterop\HandBrakeInterop.csproj">\r
+ <ProjectReference Include="..\HandBrake.Interop\HandBrakeInterop\HandBrake.Interop.csproj">\r
<Project>{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}</Project>\r
- <Name>HandBrakeInterop</Name>\r
+ <Name>HandBrake.Interop</Name>\r
</ProjectReference>\r
</ItemGroup>\r
<ItemGroup>\r