| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | |
| 10 #include "mojo/public/cpp/bindings/binding.h" | 9 #include "mojo/public/cpp/bindings/binding.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "url/mojo/url_test.mojom.h" | 11 #include "url/mojo/url_test.mojom.h" |
| 13 | 12 |
| 14 namespace url { | 13 namespace url { |
| 15 | 14 |
| 16 class UrlTestImpl : public mojom::UrlTest { | 15 class UrlTestImpl : public mojom::UrlTest { |
| 17 public: | 16 public: |
| 18 explicit UrlTestImpl(mojo::InterfaceRequest<mojom::UrlTest> request) | 17 explicit UrlTestImpl(mojo::InterfaceRequest<mojom::UrlTest> request) |
| 19 : binding_(this, std::move(request)) { | 18 : binding_(this, std::move(request)) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 EXPECT_TRUE(proxy->BounceOrigin(non_unique, &output)); | 80 EXPECT_TRUE(proxy->BounceOrigin(non_unique, &output)); |
| 82 EXPECT_EQ(non_unique, output); | 81 EXPECT_EQ(non_unique, output); |
| 83 EXPECT_FALSE(non_unique.unique()); | 82 EXPECT_FALSE(non_unique.unique()); |
| 84 | 83 |
| 85 Origin unique; | 84 Origin unique; |
| 86 EXPECT_TRUE(proxy->BounceOrigin(unique, &output)); | 85 EXPECT_TRUE(proxy->BounceOrigin(unique, &output)); |
| 87 EXPECT_TRUE(output.unique()); | 86 EXPECT_TRUE(output.unique()); |
| 88 } | 87 } |
| 89 | 88 |
| 90 } // namespace url | 89 } // namespace url |
| OLD | NEW |