// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/mime_sniffer.h" #include <vector> #include "base/bits.h" #include "base/check_op.h" #include "base/timer/elapsed_timer.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/perf/perf_result_reporter.h" namespace net { namespace { // This text is supposed to be representative of a plain text file the browser // might encounter, including a variation in line lengths and blank // lines. CRLF is used as the line-terminator to make it slightly more // difficult. It is roughly 1KB. const char kRepresentativePlainText[] = …; void RunLooksLikeBinary(const std::string& plaintext, size_t iterations) { … } TEST(MimeSnifferTest, PlainTextPerfTest) { … } } // namespace } // namespace net