Remove "testing" from gtest/gmock include header

This is to remove dependency on Chromium directory layouts, to make it
easier for integration.

Change-Id: If23512c9e4a70462d70ff965e59339a33541746c
This commit is contained in:
KongQun Yang 2014-08-21 15:40:44 -07:00
parent fe4196e7da
commit f4d0ef432e
38 changed files with 78 additions and 62 deletions

View File

@ -4,12 +4,12 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/aes_encryptor.h"
#include <gtest/gtest.h>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/base/aes_encryptor.h"
namespace {

View File

@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include "media/base/audio_timestamp_helper.h"
#include "media/base/timestamp.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {

View File

@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/bit_reader.h"
#include <gtest/gtest.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "media/base/bit_reader.h"
namespace media {

View File

@ -4,13 +4,13 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/closure_thread.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/waitable_event.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/base/closure_thread.h"
using ::testing::DoAll;
using ::testing::Invoke;

View File

@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/container_names.h"
#include <gtest/gtest.h>
#include "base/file_util.h"
#include "media/base/container_names.h"
#include "media/test/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {

View File

@ -4,9 +4,9 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/muxer_util.h"
#include <gtest/gtest.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "media/base/muxer_util.h"
namespace media {

View File

@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include <string.h>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/offset_byte_queue.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {

View File

@ -4,13 +4,13 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/producer_consumer_queue.h"
#include <gtest/gtest.h>
#include "base/bind.h"
#include "base/synchronization/waitable_event.h"
#include "media/base/closure_thread.h"
#include "media/base/producer_consumer_queue.h"
#include "media/base/status_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const size_t kCapacity = 10u;

View File

@ -6,12 +6,12 @@
//
// Unit test for rsa_key RSA encryption and signing.
#include "media/base/rsa_key.h"
#include <gtest/gtest.h>
#include "base/memory/scoped_ptr.h"
#include "media/base/fake_prng.h"
#include "media/base/rsa_key.h"
#include "media/base/rsa_test_data.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {

View File

@ -7,8 +7,9 @@
#ifndef MEDIA_BASE_STATUS_TEST_UTIL_H_
#define MEDIA_BASE_STATUS_TEST_UTIL_H_
#include <gtest/gtest.h>
#include "media/base/status.h"
#include "testing/gtest/include/gtest/gtest.h"
#define EXPECT_OK(val) EXPECT_EQ(media::Status::OK, (val))
#define ASSERT_OK(val) ASSERT_EQ(media::Status::OK, (val))

View File

@ -4,9 +4,9 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/status_test_util.h"
#include <gtest/gtest-spi.h>
#include "testing/gtest/include/gtest/gtest-spi.h"
#include "media/base/status_test_util.h"
TEST(StatusTestUtil, ExpectOkSuccess) {
EXPECT_OK(media::Status::OK);

View File

@ -4,11 +4,11 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/status.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "base/strings/string_number_conversions.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/base/status.h"
namespace media {

View File

@ -4,7 +4,8 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/base/widevine_encryption_key_source.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "base/base64.h"
#include "base/strings/string_number_conversions.h"
@ -12,8 +13,7 @@
#include "media/base/http_fetcher.h"
#include "media/base/request_signer.h"
#include "media/base/status_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/base/widevine_encryption_key_source.h"
namespace {
const char kServerUrl[] = "http://www.foo.com/getcontentkey";

View File

@ -4,6 +4,8 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include <vector>
#include "base/file_util.h"
@ -14,7 +16,6 @@
#include "media/base/muxer_options.h"
#include "media/base/video_stream_info.h"
#include "mpd/base/media_info.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/protobuf/src/google/protobuf/text_format.h"
using dash_packager::MediaInfo;

View File

@ -4,10 +4,10 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/file/file.h"
#include <gtest/gtest.h>
#include "base/file_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/file/file.h"
namespace {
const int kDataSize = 1024;

View File

@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include "media/filters/h264_bit_reader.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {

View File

@ -4,12 +4,12 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include <stdio.h>
#include "base/strings/string_number_conversions.h"
#include "media/filters/h264_byte_to_unit_stream_converter.h"
#include "media/test/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include <stdio.h>
namespace {
const char kExpectedConfigRecord[] =

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include "base/command_line.h"
#include "base/files/memory_mapped_file.h"
#include "base/logging.h"
@ -9,7 +11,6 @@
#include "base/strings/string_number_conversions.h"
#include "media/test/test_data_util.h"
#include "media/filters/h264_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {

View File

@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "media/formats/mp2t/adts_header.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include <algorithm>
#include <vector>
@ -15,7 +17,6 @@
#include "media/filters/h264_parser.h"
#include "media/formats/mp2t/es_parser_h264.h"
#include "media/test/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
class VideoStreamInfo;

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include <algorithm>
#include <string>
@ -16,7 +18,6 @@
#include "media/formats/mp2t/mp2t_common.h"
#include "media/formats/mp2t/mp2t_media_parser.h"
#include "media/test/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace mp2t {

View File

@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/formats/mp4/aac_audio_specific_config.h"
#include <gtest/gtest.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "media/formats/mp4/aac_audio_specific_config.h"
namespace media {
namespace mp4 {

View File

@ -4,13 +4,13 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/formats/mp4/box_definitions.h"
#include <gtest/gtest.h>
#include "base/memory/scoped_ptr.h"
#include "media/base/buffer_writer.h"
#include "media/formats/mp4/box_definitions.h"
#include "media/formats/mp4/box_definitions_comparison.h"
#include "media/formats/mp4/box_reader.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const uint8 kData16Bytes[] = {8, 7, 6, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 6, 7, 8};

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include <string.h>
#include "base/basictypes.h"
@ -9,7 +10,6 @@
#include "base/memory/scoped_ptr.h"
#include "media/formats/mp4/box_buffer.h"
#include "media/formats/mp4/rcheck.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace mp4 {

View File

@ -4,11 +4,11 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/formats/mp4/chunk_info_iterator.h"
#include <gtest/gtest.h>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/formats/mp4/chunk_info_iterator.h"
namespace {
struct ChunkProperty {

View File

@ -4,10 +4,10 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/formats/mp4/composition_offset_iterator.h"
#include <gtest/gtest.h>
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/formats/mp4/composition_offset_iterator.h"
namespace media {
namespace mp4 {

View File

@ -4,10 +4,10 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/formats/mp4/decoding_time_iterator.h"
#include <gtest/gtest.h>
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "media/formats/mp4/decoding_time_iterator.h"
namespace media {
namespace mp4 {

View File

@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/formats/mp4/es_descriptor.h"
#include <gtest/gtest.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "media/formats/mp4/es_descriptor.h"
namespace media {

View File

@ -4,13 +4,13 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/formats/mp4/mp4_media_parser.h"
#include <gtest/gtest.h>
#include "base/bind.h"
#include "base/logging.h"
#include "media/base/media_sample.h"
#include "media/formats/mp4/mp4_media_parser.h"
#include "media/test/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace mp4 {

View File

@ -4,9 +4,9 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "media/formats/mp4/sync_sample_iterator.h"
#include <gtest/gtest.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "media/formats/mp4/sync_sample_iterator.h"
namespace {
const uint32 kNumSamples = 100;

View File

@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "media/formats/mp4/box_definitions.h"
#include "media/formats/mp4/rcheck.h"
#include "media/formats/mp4/track_run_iterator.h"
#include "testing/gtest/include/gtest/gtest.h"
// The sum of the elements in a vector initialized with SumAscending,
// less the value of the last element.

View File

@ -4,6 +4,8 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include "base/file_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
@ -16,7 +18,6 @@
#include "media/base/stream_info.h"
#include "media/formats/mp4/mp4_muxer.h"
#include "media/test/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
using ::testing::ValuesIn;

View File

@ -4,10 +4,11 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);

View File

@ -4,10 +4,11 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include <cmath>
#include "mpd/base/bandwidth_estimator.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace dash_packager {

View File

@ -4,6 +4,7 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include <inttypes.h>
#include "base/file_util.h"
@ -16,7 +17,6 @@
#include "mpd/base/mpd_utils.h"
#include "mpd/test/mpd_builder_test_helper.h"
#include "mpd/test/xml_compare.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libxml/src/include/libxml/xmlstring.h"
namespace dash_packager {

View File

@ -3,6 +3,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include <list>
#include "base/logging.h"
@ -10,7 +13,6 @@
#include "mpd/base/mpd_builder.h"
#include "mpd/base/xml/xml_node.h"
#include "mpd/test/xml_compare.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libxml/src/include/libxml/tree.h"
namespace dash_packager {

View File

@ -6,13 +6,14 @@
#include "mpd/test/mpd_builder_test_helper.h"
#include <gtest/gtest.h>
#include "base/file_util.h"
#include "base/path_service.h"
#include "mpd/base/media_info.pb.h"
#include "mpd/base/mpd_builder.h"
#include "mpd/base/xml/scoped_xml_ptr.h"
#include "mpd/test/xml_compare.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/protobuf/src/google/protobuf/text_format.h"
namespace dash_packager {

View File

@ -4,11 +4,12 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include "base/file_util.h"
#include "base/path_service.h"
#include "mpd/test/mpd_builder_test_helper.h"
#include "mpd/util/mpd_writer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace dash_packager {