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

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

Issue 2010793003: Clean up media header include guards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update references to the param traits guard Created 4 years, 6 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/base/sample_format.h ('k') | media/base/text_track_config.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_BASE_TEST_RANDOM_H_
6 #define MEDIA_BLINK_TEST_RANDOM_H_ 6 #define MEDIA_BASE_TEST_RANDOM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 11
12 // Vastly simplified ACM random class meant to only be used for testing. 12 // Vastly simplified ACM random class meant to only be used for testing.
13 // This class is meant to generate predictable sequences of pseudorandom 13 // This class is meant to generate predictable sequences of pseudorandom
14 // numbers, unlike the classes in base/rand_util.h which are meant to generate 14 // numbers, unlike the classes in base/rand_util.h which are meant to generate
15 // unpredictable sequences. 15 // unpredictable sequences.
16 // See 16 // See
(...skipping 18 matching lines...) Expand all
35 return seed_; 35 return seed_;
36 } 36 }
37 37
38 private: 38 private:
39 static const uint64_t M = 2147483647L; // 2^32-1 39 static const uint64_t M = 2147483647L; // 2^32-1
40 int32_t seed_; 40 int32_t seed_;
41 }; 41 };
42 42
43 } // namespace media 43 } // namespace media
44 44
45 #endif // MEDIA_BLINK_TEST_RANDOM_H_ 45 #endif // MEDIA_BASE_TEST_RANDOM_H_
OLDNEW
« no previous file with comments | « media/base/sample_format.h ('k') | media/base/text_track_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698