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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/SuboriginTest.cpp

Issue 2803603004: Rewrite references to "wtf/" to "platform/wtf/" in platform/weborigin. (Closed)
Patch Set: Created 3 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
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 #include "platform/weborigin/Suborigin.h" 5 #include "platform/weborigin/Suborigin.h"
6 6
7 #include "platform/wtf/dtoa/utils.h"
7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
8 #include "wtf/dtoa/utils.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 bool policyContainsOnly(const Suborigin& suborigin, 12 bool policyContainsOnly(const Suborigin& suborigin,
13 const Suborigin::SuboriginPolicyOptions options[], 13 const Suborigin::SuboriginPolicyOptions options[],
14 size_t optionsSize) { 14 size_t optionsSize) {
15 unsigned optionsMask = 0; 15 unsigned optionsMask = 0;
16 for (size_t i = 0; i < optionsSize; i++) 16 for (size_t i = 0; i < optionsSize; i++)
17 optionsMask |= static_cast<unsigned>(options[i]); 17 optionsMask |= static_cast<unsigned>(options[i]);
18 18
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 suboriginAllUnsafePostmessage.addPolicyOption( 58 suboriginAllUnsafePostmessage.addPolicyOption(
59 Suborigin::SuboriginPolicyOptions::UnsafePostMessageSend); 59 Suborigin::SuboriginPolicyOptions::UnsafePostMessageSend);
60 suboriginAllUnsafePostmessage.addPolicyOption( 60 suboriginAllUnsafePostmessage.addPolicyOption(
61 Suborigin::SuboriginPolicyOptions::UnsafePostMessageReceive); 61 Suborigin::SuboriginPolicyOptions::UnsafePostMessageReceive);
62 EXPECT_TRUE(policyContainsOnly(suboriginAllUnsafePostmessage, 62 EXPECT_TRUE(policyContainsOnly(suboriginAllUnsafePostmessage,
63 allUnsafePostmessagePolicies, 63 allUnsafePostmessagePolicies,
64 ARRAY_SIZE(allUnsafePostmessagePolicies))); 64 ARRAY_SIZE(allUnsafePostmessagePolicies)));
65 } 65 }
66 66
67 } // namespace blink 67 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698