Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
nonce_generator_test_base.h
Go to the documentation of this file.
1 // Copyright 2013 Google Inc. All Rights Reserved.
14 
16 
17 #ifndef PAGESPEED_KERNEL_UTIL_NONCE_GENERATOR_TEST_BASE_H_
18 #define PAGESPEED_KERNEL_UTIL_NONCE_GENERATOR_TEST_BASE_H_
19 
24 
25 namespace net_instaweb {
26 
28 extern const int kNumIterations;
29 extern const int kSmallNumIterations;
30 
31 class NonceGeneratorTestBase : public testing::Test {
32  protected:
35 
36  void DuplicateFreedom();
37  void DifferentNonOverlap();
38  void AllBitsUsed();
39 
40  scoped_ptr<NonceGenerator> main_generator_;
41  scoped_ptr<NonceGenerator> other_generator_;
42 
43  private:
44 
45 };
46 
47 }
48 
49 #endif
const int kNumIterations
Number of iterations of nonce generation to check in tests.
Definition: scoped_ptr.h:30
Definition: nonce_generator_test_base.h:31