Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: third_party/cld/encodings/compact_lang_det/subsetsequence_unittest.cc

Issue 12676028: Fix licensecheck on third_party/cld (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/cld/encodings/compact_lang_det/subsetsequence_unittest.cc
diff --git a/third_party/cld/encodings/compact_lang_det/subsetsequence_unittest.cc b/third_party/cld/encodings/compact_lang_det/subsetsequence_unittest.cc
deleted file mode 100644
index fe981b89bc043149eab759f87fbb8660b9ca9294..0000000000000000000000000000000000000000
--- a/third_party/cld/encodings/compact_lang_det/subsetsequence_unittest.cc
+++ /dev/null
@@ -1,99 +0,0 @@
-// Copyright 2008 Google Inc. All Rights Reserved.
-// Author: dsites@google.com (Dick Sites)
-/*
-#include "testing/base/public/gunit.h"
-#include "testing/lib/strings/overrun_sensitive_memory_block.h"
-#include "cld/encodings/compact_lang_det/subsetsequence.h"
-
-// This always passes. It is just scaffolidng to exercise the subsequence
-// facility, which is likely to get abandoned soon. dsites 2008.11.17
-//
-TEST(SubsetSequence, foo) {
- uint8 dst[120];
-
- // Create 120-element vector
- printf("Creating %d items:\n", 120);
- SubsetSequence ss;
- for (int i = 0; i < 120; ++i) {
- ss.Add(i);
- }
-
- // Extract various lengths
- for (int n = 120; n >= 0; --n) {
- ss.Extract(n, dst);
- printf("[%d] ", n);
- for (int i = 0; i < n; ++i) {
- printf("%d ", dst[i]);
- }
- printf("\n");
- }
-
- printf("\n");
- printf("\n");
-
- // Create 120-element vector of 7 items each
- printf("Creating %d items:\n", 120);
- ss.Init();
- for (int i = 0; i < 120; ++i) {
- ss.Add(i / 7);
- }
-
- // Extract various lengths
- for (int n = 120; n >= 0; --n) {
- ss.Extract(n, dst);
- printf("[%d] ", n);
- for (int i = 0; i < n; ++i) {
- printf("%d ", dst[i]);
- }
- printf("\n");
- }
-
- printf("\n");
- printf("\n");
-
-
- // Create 400 element vector of patterns
- int nn1 = 400;
- int divisor = (nn1 + 239) / 240; // Max inserted value = 240
- printf("Creating %d items:\n", nn1);
- ss.Init();
- for (int i = 0; i < nn1; ++i) {
- ss.Add(i / divisor);
- }
-
- // Extract 12-item summary lengths
- int n1 = 12;
- ss.Extract(n1, dst);
- printf("[%d] ", n1);
- for (int i = 0; i < n1; ++i) {
- printf("%d ", dst[i]);
- }
- printf("\n");
-
- printf("\n");
- printf("\n");
-
- // Create 10**n element vector of patterns
- int pow_10 = 1;
- for (int nn = 0; nn < 9; ++nn) {
- printf("Creating %d items:\n", pow_10);
- int divisor = (pow_10 + 239) / 240; // Max inserted value = 240
- ss.Init();
- for (int i = 0; i < pow_10; ++i) {
- ss.Add(i / divisor);
- }
-
- // Extract 12-item summary lengths
- int n = 12;
- ss.Extract(n, dst);
- printf("[%d] ", n);
- for (int i = 0; i < n; ++i) {
- printf("%d ", dst[i]);
- }
- printf("\n");
-
- pow_10 *= 10;
- }
-
-}
-*/

Powered by Google App Engine
This is Rietveld 408576698