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

Side by Side Diff: third_party/WebKit/Source/core/testing/OriginTrialsTest.h

Issue 2340323002: Add Origin Trials Test interface, rather than attaching trials directly to internals. (Closed)
Patch Set: Updates Created 4 years, 3 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 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef OriginTrialsTest_h
6 #define OriginTrialsTest_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class ExceptionState;
14 class ScriptState;
15
16 // OriginTrialsTest is a very simple interface used for testing
17 // origin-trial-enabled features which are attached directly to interfaces at
18 // run-time.
19 class OriginTrialsTest : public GarbageCollectedFinalized<OriginTrialsTest>, pub lic ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO();
21 public:
22 static OriginTrialsTest* create()
23 {
24 return new OriginTrialsTest();
25 }
26 virtual ~OriginTrialsTest() = default;
27
28 bool normalAttribute();
29 static bool staticAttribute();
30
31 bool throwingAttribute(ScriptState*, ExceptionState&);
32 bool unconditionalAttribute();
33
34 static const unsigned short kConstant = 1;
35
36 DECLARE_TRACE();
37
38 private:
39 OriginTrialsTest() = default;
40
41 };
42
43 } // namespace blink
44
45 #endif // OriginTrialsTest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.idl ('k') | third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698