summaryrefslogtreecommitdiffstats
path: root/third_party/cld
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 18:24:01 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 18:24:01 +0000
commita54c078e2575f386a8427c8bcd6fb61fdebaf747 (patch)
treed8d1ea003a29b92b437dd7ad4bccb8e6bb0e0bf4 /third_party/cld
parent802a30620edcdbda3321e4253f49830f324c4ae2 (diff)
downloadchromium_src-a54c078e2575f386a8427c8bcd6fb61fdebaf747.zip
chromium_src-a54c078e2575f386a8427c8bcd6fb61fdebaf747.tar.gz
chromium_src-a54c078e2575f386a8427c8bcd6fb61fdebaf747.tar.bz2
Fix licensecheck on third_party/cld
- Remove unused files - Update license description - Remove them from suppression list BUG=98120 TEST=tools/checklicenses/checklicenses.py third_party/cld Review URL: https://codereview.chromium.org/12676028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/cld')
-rw-r--r--third_party/cld/encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz_0.cc4
-rw-r--r--third_party/cld/encodings/compact_lang_det/subsetsequence_unittest.cc99
-rw-r--r--third_party/cld/encodings/compact_lang_det/win/cld_utf8utils_google3.cc18
3 files changed, 3 insertions, 118 deletions
diff --git a/third_party/cld/encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz_0.cc b/third_party/cld/encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz_0.cc
index 51769f2..ea2a33c 100644
--- a/third_party/cld/encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz_0.cc
+++ b/third_party/cld/encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz_0.cc
@@ -1,4 +1,6 @@
-// Copyright 2009 Google Inc.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
//
// Created by utf8tablebuilder version 2.8
// See util/utf8/utf8statetable.h for usage
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 fe981b8..0000000
--- 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;
- }
-
-}
-*/
diff --git a/third_party/cld/encodings/compact_lang_det/win/cld_utf8utils_google3.cc b/third_party/cld/encodings/compact_lang_det/win/cld_utf8utils_google3.cc
deleted file mode 100644
index 6bb9de7..0000000
--- a/third_party/cld/encodings/compact_lang_det/win/cld_utf8utils_google3.cc
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2009 Google Inc. All Rights Reserved.
-// Author: alekseys@google.com (Aleksey Shlyapnikov)
-
-// This code is not actually used, it was copied here for the reference only.
-// See cld_htmlutils_windows.cc for Windows version of this code.
-
-#include "cld/encodings/compact_lang_det/win/cld_utf8utils.h"
-
-#include "cld/util/utf8/utf8statetable.h"
-
-namespace cld {
-
-int UTF8GenericScan(const UTF8ScanObj* st, const char* src, int len,
- int* bytes_consumed) {
- return ::UTF8GenericScan(st, StringPiece(src, len), bytes_consumed);
-}
-
-} // namespace cld