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

Side by Side Diff: media/blink/test_random.h

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | media/blink/test_response_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BLINK_TEST_RANDOM_H_ 5 #ifndef MEDIA_BLINK_TEST_RANDOM_H_
6 #define MEDIA_BLINK_TEST_RANDOM_H_ 6 #define MEDIA_BLINK_TEST_RANDOM_H_
7 7
8 #include <stdint.h>
9
8 // Vastly simplified ACM random class meant to only be used for testing. 10 // Vastly simplified ACM random class meant to only be used for testing.
9 // This class is meant to generate predictable sequences of pseudorandom 11 // This class is meant to generate predictable sequences of pseudorandom
10 // numbers, unlike the classes in base/rand_util.h which are meant to generate 12 // numbers, unlike the classes in base/rand_util.h which are meant to generate
11 // unpredictable sequences. 13 // unpredictable sequences.
12 // See 14 // See
13 // https://code.google.com/p/szl/source/browse/trunk/src/utilities/acmrandom.h 15 // https://code.google.com/p/szl/source/browse/trunk/src/utilities/acmrandom.h
14 // for more information. 16 // for more information.
15 17
16 namespace media { 18 namespace media {
17 19
(...skipping 14 matching lines...) Expand all
32 } 34 }
33 35
34 private: 36 private:
35 static const uint64_t M = 2147483647L; // 2^32-1 37 static const uint64_t M = 2147483647L; // 2^32-1
36 int32_t seed_; 38 int32_t seed_;
37 }; 39 };
38 40
39 } // namespace media 41 } // namespace media
40 42
41 #endif // MEDIA_BLINK_TEST_RANDOM_H_ 43 #endif // MEDIA_BLINK_TEST_RANDOM_H_
OLDNEW
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | media/blink/test_response_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698