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

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

Issue 2861673007: Add Origin Trial layout tests for IDL bindings (Closed)
Patch Set: Fix compile errors Created 3 years, 7 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 OriginTrialsTestPartial_h 5 #ifndef OriginTrialsTestPartial_h
6 #define OriginTrialsTestPartial_h 6 #define OriginTrialsTestPartial_h
7 7
8 #include "platform/wtf/Allocator.h" 8 #include "platform/wtf/Allocator.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class OriginTrialsTest; 12 class OriginTrialsTest;
13 13
14 // This interface is used for testing that partial interfaces can extend other 14 // This interface is used for testing that partial interfaces can extend other
15 // interfaces at run-time, if the origin trial is enabled. 15 // interfaces at run-time, if the origin trial is enabled.
16 class OriginTrialsTestPartial final { 16 class OriginTrialsTestPartial final {
17 STATIC_ONLY(OriginTrialsTestPartial); 17 STATIC_ONLY(OriginTrialsTestPartial);
18 18
19 public: 19 public:
20 static bool normalAttributePartial(OriginTrialsTest&) { return true; } 20 static bool normalAttributePartial(OriginTrialsTest&) { return true; }
21 static bool staticAttributePartial() { return true; } 21 static bool staticAttributePartial() { return true; }
22 static bool methodPartial(OriginTrialsTest&) { return true; } 22 static bool normalMethodPartial(OriginTrialsTest&) { return true; }
23 static bool staticMethodPartial() { return true; } 23 static bool staticMethodPartial() { return true; }
24 static const unsigned kConstantPartial = 2; 24 static const unsigned kConstantPartial = 2;
25 static bool secureAttributePartial(OriginTrialsTest&) { return true; }
26 static bool secureStaticAttributePartial() { return true; }
27 static bool secureMethodPartial(OriginTrialsTest&) { return true; }
28 static bool secureStaticMethodPartial() { return true; }
25 }; 29 };
26 30
27 } // namespace blink 31 } // namespace blink
28 32
29 #endif // OriginTrialsTestPartial_h 33 #endif // OriginTrialsTestPartial_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698