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

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: clarify comment 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 // Generate this token with the command:
6 // generate_token.py http://127.0.0.1:8000 Frobulate -expire-timestamp=200000000 0
7 header("Origin-Trial: AlCoOPbezqtrGMzSzbLQC4c+oPqO6yuioemcBPjgcXajF8jtmZr4B8tJRP AARPbsX6hDeVyXCKHzEJfpBXvZgQEAAABReyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIi wgImZlYXR1cmUiOiAiRnJvYnVsYXRlIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9");
8 ?>
9 <!DOCTYPE html>
10 <meta charset="utf-8">
11 <title>Test Sample API when trial is enabled</title>
12 <script src="../resources/testharness.js"></script>
13 <script src="../resources/testharness-helpers.js"></script>
14 <script src="../resources/testharnessreport.js"></script>
15 <script src="resources/origin_trials.js"></script>
16 <script>
17
18 // The trial is enabled by the token above in header.
19 expect_success();
20
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698