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

Side by Side Diff: third_party/WebKit/Source/platform/mojo/KURLSecurityOriginTest.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "mojo/public/cpp/bindings/binding.h" 7 #include "mojo/public/cpp/bindings/binding.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "url/mojo/url_test.mojom-blink.h" 9 #include "url/mojo/url_test.mojom-blink.h"
10 #include "url/url_constants.h" 10 #include "url/url_constants.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 RefPtr<SecurityOrigin> with_sub_origin = 90 RefPtr<SecurityOrigin> with_sub_origin =
91 SecurityOrigin::Create("http", "www.google.com", 80, "suborigin"); 91 SecurityOrigin::Create("http", "www.google.com", 80, "suborigin");
92 EXPECT_TRUE(proxy->BounceOrigin(with_sub_origin, &output)); 92 EXPECT_TRUE(proxy->BounceOrigin(with_sub_origin, &output));
93 EXPECT_TRUE(with_sub_origin->IsSameSchemeHostPortAndSuborigin(output.Get())); 93 EXPECT_TRUE(with_sub_origin->IsSameSchemeHostPortAndSuborigin(output.Get()));
94 EXPECT_TRUE(with_sub_origin->IsSameSchemeHostPort(output.Get())); 94 EXPECT_TRUE(with_sub_origin->IsSameSchemeHostPort(output.Get()));
95 EXPECT_TRUE(output->HasSuborigin()); 95 EXPECT_TRUE(output->HasSuborigin());
96 EXPECT_FALSE(output->IsUnique()); 96 EXPECT_FALSE(output->IsUnique());
97 } 97 }
98 98
99 } // namespace url 99 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698