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

Side by Side Diff: third_party/WebKit/Source/platform/testing/FuzzedDataProvider.h

Issue 2803613002: Rewrite references to "wtf/" to "platform/wtf/" in platform/testing. (Closed)
Patch Set: Fix compile error. (Why did this work before?) Created 3 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 FuzzedDataProvider_h 5 #ifndef FuzzedDataProvider_h
6 #define FuzzedDataProvider_h 6 #define FuzzedDataProvider_h
7 7
8 #include "base/test/fuzzed_data_provider.h" 8 #include "base/test/fuzzed_data_provider.h"
9 #include "wtf/Noncopyable.h" 9 #include "platform/wtf/Noncopyable.h"
10 #include "wtf/text/CString.h" 10 #include "platform/wtf/text/CString.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 // This class simply wraps //base/test/fuzzed_data_provider and vends Blink 14 // This class simply wraps //base/test/fuzzed_data_provider and vends Blink
15 // friendly types. 15 // friendly types.
16 class FuzzedDataProvider { 16 class FuzzedDataProvider {
17 WTF_MAKE_NONCOPYABLE(FuzzedDataProvider); 17 WTF_MAKE_NONCOPYABLE(FuzzedDataProvider);
18 18
19 public: 19 public:
20 FuzzedDataProvider(const uint8_t* bytes, size_t numBytes); 20 FuzzedDataProvider(const uint8_t* bytes, size_t numBytes);
(...skipping 16 matching lines...) Expand all
37 return array[m_provider.ConsumeUint32InRange(0, size - 1)]; 37 return array[m_provider.ConsumeUint32InRange(0, size - 1)];
38 } 38 }
39 39
40 private: 40 private:
41 base::FuzzedDataProvider m_provider; 41 base::FuzzedDataProvider m_provider;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // FuzzedDataProvider_h 46 #endif // FuzzedDataProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698