Skip to content

Commit

Permalink
Move test_random.h into media/base
Browse files Browse the repository at this point in the history
TEST=compiles, no code changes

Review URL: https://codereview.chromium.org/1762753002

Cr-Commit-Position: refs/heads/master@{#379097}
  • Loading branch information
jrummell-chromium authored and Commit bot committed Mar 3, 2016
1 parent 0359d7d commit 7191be7
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions media/base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ source_set("test_support") {
"test_data_util.h",
"test_helpers.cc",
"test_helpers.h",
"test_random.h",
]
configs += [ "//media:media_config" ]
deps = [
Expand Down
2 changes: 2 additions & 0 deletions media/blink/test_random.h → media/base/test_random.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <stdint.h>

#include "base/logging.h"

// Vastly simplified ACM random class meant to only be used for testing.
// This class is meant to generate predictable sequences of pseudorandom
// numbers, unlike the classes in base/rand_util.h which are meant to generate
Expand Down
1 change: 0 additions & 1 deletion media/blink/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ test("media_blink_unittests") {
"multibuffer_data_source_unittest.cc",
"multibuffer_unittest.cc",
"run_all_unittests.cc",
"test_random.h",
"test_response_generator.cc",
"test_response_generator.h",
"url_index_unittest.cc",
Expand Down
2 changes: 1 addition & 1 deletion media/blink/interval_map_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <string>

#include "base/strings/stringprintf.h"
#include "media/base/test_random.h"
#include "media/blink/interval_map.h"
#include "media/blink/test_random.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
Expand Down
2 changes: 1 addition & 1 deletion media/blink/lru_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <list>

#include "base/logging.h"
#include "media/base/test_random.h"
#include "media/blink/lru.h"
#include "media/blink/test_random.h"
#include "testing/gtest/include/gtest/gtest.h"

// Range of integer used in tests below.
Expand Down
1 change: 0 additions & 1 deletion media/blink/media_blink.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
'multibuffer_unittest.cc',
'resource_multibuffer_data_provider_unittest.cc',
'run_all_unittests.cc',
'test_random.h',
'test_response_generator.cc',
'test_response_generator.h',
'url_index_unittest.cc',
Expand Down
2 changes: 1 addition & 1 deletion media/blink/multibuffer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/message_loop/message_loop.h"
#include "media/base/test_random.h"
#include "media/blink/multibuffer.h"
#include "media/blink/multibuffer_reader.h"
#include "media/blink/test_random.h"
#include "testing/gtest/include/gtest/gtest.h"

const int kBlockSizeShift = 8;
Expand Down
1 change: 1 addition & 0 deletions media/media.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,7 @@
'base/test_data_util.h',
'base/test_helpers.cc',
'base/test_helpers.h',
'base/test_random.h',
'renderers/mock_gpu_memory_buffer_video_frame_pool.cc',
'renderers/mock_gpu_memory_buffer_video_frame_pool.h',
'renderers/mock_gpu_video_accelerator_factories.cc',
Expand Down

0 comments on commit 7191be7

Please sign in to comment.