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> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 30 matching lines...) Expand all Loading... |
41 extern const bool kIsOverridingUserAgent; | 41 extern const bool kIsOverridingUserAgent; |
42 extern const base::Time kTimestamp; | 42 extern const base::Time kTimestamp; |
43 extern const base::string16 kSearchTerms; | 43 extern const base::string16 kSearchTerms; |
44 extern const GURL kFaviconURL; | 44 extern const GURL kFaviconURL; |
45 extern const int kHttpStatusCode; | 45 extern const int kHttpStatusCode; |
46 extern const GURL kRedirectURL0; | 46 extern const GURL kRedirectURL0; |
47 extern const GURL kRedirectURL1; | 47 extern const GURL kRedirectURL1; |
48 extern const GURL kOtherURL; | 48 extern const GURL kOtherURL; |
49 extern const int kPageID; | 49 extern const int kPageID; |
50 extern const SerializedNavigationEntry::PasswordState kPasswordState; | 50 extern const SerializedNavigationEntry::PasswordState kPasswordState; |
| 51 extern const std::string kExtendedInfoKey1; |
| 52 extern const std::string kExtendedInfoKey2; |
| 53 extern const std::string kExtendedInfoValue1; |
| 54 extern const std::string kExtendedInfoValue2; |
51 | 55 |
52 } // namespace test_data | 56 } // namespace test_data |
53 | 57 |
54 // Set of test functions to manipulate a SerializedNavigationEntry. | 58 // Set of test functions to manipulate a SerializedNavigationEntry. |
55 class SerializedNavigationEntryTestHelper { | 59 class SerializedNavigationEntryTestHelper { |
56 public: | 60 public: |
57 // Compares the two entries. This uses EXPECT_XXX on each member, if your test | 61 // Compares the two entries. This uses EXPECT_XXX on each member, if your test |
58 // needs to stop after this wrap calls to this in EXPECT_NO_FATAL_FAILURE. | 62 // needs to stop after this wrap calls to this in EXPECT_NO_FATAL_FAILURE. |
59 static void ExpectNavigationEquals(const SerializedNavigationEntry& expected, | 63 static void ExpectNavigationEquals(const SerializedNavigationEntry& expected, |
60 const SerializedNavigationEntry& actual); | 64 const SerializedNavigationEntry& actual); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 static void SetTimestamp(base::Time timestamp, | 96 static void SetTimestamp(base::Time timestamp, |
93 SerializedNavigationEntry* navigation); | 97 SerializedNavigationEntry* navigation); |
94 | 98 |
95 private: | 99 private: |
96 DISALLOW_IMPLICIT_CONSTRUCTORS(SerializedNavigationEntryTestHelper); | 100 DISALLOW_IMPLICIT_CONSTRUCTORS(SerializedNavigationEntryTestHelper); |
97 }; | 101 }; |
98 | 102 |
99 } // sessions | 103 } // sessions |
100 | 104 |
101 #endif // COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ | 105 #endif // COMPONENTS_SESSIONS_SESSION_TYPES_TEST_HELPER_H_ |
OLD | NEW |