Example #1
0
 public async Task RegressionTest()
 {
     LogWriter.WriteLine("===================");
     LogWriter.WriteLine(" Regression Test");
     LogWriter.WriteLine("===================");
     foreach (var filePath in System.IO.Directory.EnumerateFiles(REGRESSION_TESTDATA_PATH, "*.blink"))
     {
         var browserName = System.IO.Path.GetFileNameWithoutExtension(filePath);
         var importer    = new BlinkCookieImporter(new CookieSourceInfo(browserName, "Default", filePath, typeof(BlinkImporterFactory).FullName, false), 2);
         await CheckImporters(importer, CookieImportState.Success, true, true);
     }
     LogWriter.WriteLine();
 }
Example #2
0
        public async Task BlinkImporterTest()
        {
            LogWriter.WriteLine("===================");
            LogWriter.WriteLine(" BlinkCookieImporter Test");
            LogWriter.WriteLine("===================");

            //Cookiesが存在する場合
            var importer = new BlinkCookieImporter(
                new CookieSourceInfo("BlinkBrowser_blinkCookies.sqlite3", "BlinkProfile", @".\TestDatas\blinkCookies.sqlite3", null, false), 2);

            await CheckImporters(importer, CookieImportState.Success, true, true);

            //Cookiesが存在しない場合
            importer = new BlinkCookieImporter(
                new CookieSourceInfo("BlinkBrowser_empty", "BlinkProfile", string.Empty, null, false), 2);
            await CheckImporters(importer, CookieImportState.Unavailable, false, false);

            LogWriter.WriteLine();
        }