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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-enabled-header.php

Issue 1802773002: Support loading trial tokens from HTTP headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't use //net for parsing headers Created 4 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
(Empty)
1 <?php
2 // TODO(iclelland): Generate this sample token during the build. The token
3 // below will expire in 2033, but it would be better to always have a token whic h
4 // is guaranteed to be valid when the tests are run.
5 header("Origin-Trial: 1|tZPW/JJ2Sxm4z7k/Eb1/upMsppozWpTwEuGwhgQko0zWS6ebvjQ+EXPP /ftoMX8/PCoDgOS3xlrXElMgDDvbCg==|http://127.0.0.1:8000|Frobulate|2000000000");
chasej 2016/04/21 18:24:29 Probably stating the obvious, but this is the old
Marijn Kruisselbrink 2016/04/21 20:27:09 Ah yes, good point. Updated.
6 ?>
7 <!DOCTYPE html>
8 <meta charset="utf-8">
9 <title>Test Sample API when trial is enabled</title>
10 <script src="../resources/testharness.js"></script>
11 <script src="../resources/testharness-helpers.js"></script>
12 <script src="../resources/testharnessreport.js"></script>
13 <script src="resources/origin_trials.js"></script>
14 <script>
15
16 // The trial is enabled by the token above in header.
17 expect_success();
18
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698