OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ | 5 #ifndef COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ |
6 #define COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ | 6 #define COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
11 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
13 #include "ui/base/page_transition_types.h" | 15 #include "ui/base/page_transition_types.h" |
14 | 16 |
15 class GURL; | 17 class GURL; |
16 | 18 |
17 namespace base { | 19 namespace base { |
18 class Time; | 20 class Time; |
19 } | 21 } |
20 | 22 |
21 namespace sessions { | 23 namespace sessions { |
22 | 24 |
23 class SerializedNavigationEntry; | 25 class SerializedNavigationEntry; |
24 | 26 |
25 namespace test_data { | 27 namespace test_data { |
26 | 28 |
27 extern const int kIndex; | 29 extern const int kIndex; |
28 extern const int kUniqueID; | 30 extern const int kUniqueID; |
29 extern const GURL kReferrerURL; | 31 extern const GURL kReferrerURL; |
30 extern const int kReferrerPolicy; | 32 extern const int kReferrerPolicy; |
31 extern const GURL kVirtualURL; | 33 extern const GURL kVirtualURL; |
32 extern const base::string16 kTitle; | 34 extern const base::string16 kTitle; |
33 extern const std::string kEncodedPageState; | 35 extern const std::string kEncodedPageState; |
34 extern const ui::PageTransition kTransitionType; | 36 extern const ui::PageTransition kTransitionType; |
35 extern const bool kHasPostData; | 37 extern const bool kHasPostData; |
36 extern const int64 kPostID; | 38 extern const int64_t kPostID; |
37 extern const GURL kOriginalRequestURL; | 39 extern const GURL kOriginalRequestURL; |
38 extern const bool kIsOverridingUserAgent; | 40 extern const bool kIsOverridingUserAgent; |
39 extern const base::Time kTimestamp; | 41 extern const base::Time kTimestamp; |
40 extern const base::string16 kSearchTerms; | 42 extern const base::string16 kSearchTerms; |
41 extern const GURL kFaviconURL; | 43 extern const GURL kFaviconURL; |
42 extern const int kHttpStatusCode; | 44 extern const int kHttpStatusCode; |
43 extern const GURL kRedirectURL0; | 45 extern const GURL kRedirectURL0; |
44 extern const GURL kRedirectURL1; | 46 extern const GURL kRedirectURL1; |
45 extern const GURL kOtherURL; | 47 extern const GURL kOtherURL; |
46 extern const int kPageID; | 48 extern const int kPageID; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 static void SetTimestamp(base::Time timestamp, | 90 static void SetTimestamp(base::Time timestamp, |
89 SerializedNavigationEntry* navigation); | 91 SerializedNavigationEntry* navigation); |
90 | 92 |
91 private: | 93 private: |
92 DISALLOW_IMPLICIT_CONSTRUCTORS(SerializedNavigationEntryTestHelper); | 94 DISALLOW_IMPLICIT_CONSTRUCTORS(SerializedNavigationEntryTestHelper); |
93 }; | 95 }; |
94 | 96 |
95 } // sessions | 97 } // sessions |
96 | 98 |
97 #endif // COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ | 99 #endif // COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ |
OLD | NEW |