15 #ifndef PAGESPEED_KERNEL_HTTP_USER_AGENT_MATCHER_TEST_BASE_H_
16 #define PAGESPEED_KERNEL_HTTP_USER_AGENT_MATCHER_TEST_BASE_H_
21 #include "pagespeed/kernel/http/user_agent_matcher.h"
23 namespace net_instaweb {
33 static const char kAcceptHeaderValueNonMobile[];
34 static const char kALCATELMobileUserAgent[];
35 static const char kAlcatelUserAgent[];
36 static const char kAmoiUserAgent[];
37 static const char kAndroidChrome18UserAgent[];
38 static const char kAndroidChrome21UserAgent[];
39 static const char kAndroidHCUserAgent[];
40 static const char kAndroidICSUserAgent[];
41 static const char kAndroidNexusSUserAgent[];
42 static const char kBenqUserAgent[];
43 static const char kBlackBerryOS5UserAgent[];
44 static const char kBlackBerryOS6UserAgent[];
45 static const char kChrome12UserAgent[];
46 static const char kChrome15UserAgent[];
47 static const char kChrome18UserAgent[];
48 static const char kChrome31UserAgent[];
49 static const char kChrome32UserAgent[];
50 static const char kChrome37UserAgent[];
51 static const char kChrome41UserAgent[];
52 static const char kChrome42UserAgent[];
53 static const char kChrome9UserAgent[];
54 static const char kChromeUserAgent[];
55 static const char kCompalUserAgent[];
56 static const char kCriOS31UserAgent[];
57 static const char kCriOS32UserAgent[];
58 static const char kCriOS48UserAgent[];
59 static const char kDoCoMoMobileUserAgent[];
60 static const char kFirefox1UserAgent[];
61 static const char kFirefox3UserAgent[];
62 static const char kFirefox42AndroidUserAgent[];
63 static const char kFirefox5UserAgent[];
64 static const char kFirefoxMobileUserAgent[];
65 static const char kFirefoxNokiaN800[];
66 static const char kFirefoxUserAgent[];
67 static const char kFLYUserAgent[];
68 static const char kGenericAndroidUserAgent[];
69 static const char kGooglebotUserAgent[];
70 static const char kGoogleAdsBotUserAgent[];
71 static const char kGoogleAdsBotMobileUserAgent[];
72 static const char kGooglePlusUserAgent[];
73 static const char kIe6UserAgent[];
74 static const char kIe7UserAgent[];
75 static const char kIe8UserAgent[];
76 static const char kIe9UserAgent[];
77 static const char kIe10UserAgent[];
78 static const char kIPadChrome28UserAgent[];
79 static const char kIPadChrome29UserAgent[];
80 static const char kIPadChrome36UserAgent[];
81 static const char kIPadTabletUserAgent[];
82 static const char kIPadUserAgent[];
83 static const char kIPhone4Safari[];
84 static const char kIPhoneChrome21UserAgent[];
85 static const char kIPhoneChrome36UserAgent[];
86 static const char kIPhoneUserAgent[];
87 static const char kIPodSafari[];
88 static const char kiUserAgent[];
89 static const char kJMobileUserAgent[];
90 static const char kKDDIMobileUserAgent[];
91 static const char kKindleTabletUserAgent[];
92 static const char kKWCMobileUserAgent[];
93 static const char kLENOVOUserAgent[];
94 static const char kLGEMobileUserAgent[];
95 static const char kLGEUserAgent[];
96 static const char kLGMIDPMobileUserAgent[];
97 static const char kLGUPBrowserMobileUserAgent[];
98 static const char kLGUserAgent[];
99 static const char kMOTMobileUserAgent[];
100 static const char kMozillaMobileUserAgent[];
101 static const char kMozillaUserAgent[];
102 static const char kNECUserAgent[];
103 static const char kNexus10ChromeUserAgent[];
104 static const char kNexus6Chrome44UserAgent[];
105 static const char kNexus7ChromeUserAgent[];
106 static const char kNokiaMobileUserAgent[];
107 static const char kNokiaUserAgent[];
108 static const char kOpera1101UserAgent[];
109 static const char kOpera1110UserAgent[];
110 static const char kOpera18UserAgent[];
111 static const char kOpera19UserAgent[];
112 static const char kOpera5UserAgent[];
113 static const char kOpera8UserAgent[];
114 static const char kOperaMiniMobileUserAgent[];
115 static const char kOperaMobi9[];
116 static const char kOperaMobilMobileUserAgent[];
117 static const char kOperaWithFirefoxUserAgent[];
118 static const char kPagespeedInsightsDesktopUserAgent[];
119 static const char kPagespeedInsightsMobileUserAgent[];
120 static const char kPanasonicMobileUserAgent[];
121 static const char kPGUserAgent[];
122 static const char kPHILIPSUserAgent[];
123 static const char kportalmmmMobileUserAgent[];
124 static const char kPSPUserAgent[];
125 static const char kRoverUserAgent[];
126 static const char kSafariUserAgent[];
127 static const char kSafari6UserAgent[];
128 static const char kSafari9UserAgent[];
129 static const char kSAGEMMobileUserAgent[];
130 static const char kSAGEMUserAgent[];
131 static const char kSAMSUNGMobileUserAgent[];
132 static const char kSCHMobileUserAgent[];
133 static const char kSCHUserAgent[];
134 static const char kSECMobileUserAgent[];
135 static const char kSGHUserAgent[];
136 static const char kSHARPMobileUserAgent[];
137 static const char kSHARPUserAgent[];
138 static const char kSIEMobileUserAgent[];
139 static const char kSIEUserAgent[];
140 static const char kSilkDesktopUserAgent[];
141 static const char kSilkTabletUserAgent[];
142 static const char kSoftBankMobileUserAgent[];
143 static const char kSpiceUserAgent[];
144 static const char kTIANYUUserAgent[];
145 static const char kVodafoneMobileUserAgent[];
146 static const char kWindowsPhoneUserAgent[];
147 static const char kWinWAPUserAgent[];
148 static const char kXWapProfile[];
149 static const char kXWapProfileHeaderValue[];
150 static const char kYourWapUserAgent[];
151 static const char kZTEMobileUserAgent[];
152 static const char XT907UserAgent[];
153 static const char kTestingWebp[];
154 static const char kTestingWebpAnimated[];
155 static const char kTestingWebpLosslessAlpha[];
157 static const char*
const kIe11UserAgents[];
158 static const char*
const kMobileUserAgents[];
159 static const char*
const kDesktopUserAgents[];
160 static const char*
const kTabletUserAgents[];
161 static const char*
const kImageInliningSupportedUserAgents[];
163 static const int kIe11UserAgentsArraySize;
164 static const int kMobileUserAgentsArraySize;
165 static const int kDesktopUserAgentsArraySize;
166 static const int kTabletUserAgentsArraySize;
167 static const int kImageInliningSupportedUserAgentsArraySize;
171 bool IsMobileUserAgent(
const StringPiece& user_agent);
172 bool IsDesktopUserAgent(
const StringPiece& user_agent);
173 bool IsTabletUserAgent(
const StringPiece& user_agent);
174 void VerifyGetDeviceTypeForUA();
175 void VerifyImageInliningSupport();
176 void VerifyMobilizationSupport();
static const char kAcceptHeaderValueMobile[]
Definition: user_agent_matcher_test_base.h:32
Definition: scoped_ptr.h:30
Definition: user_agent_matcher_test_base.h:25