OLD | NEW |
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 Loading... |
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 |
OLD | NEW |