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

Side by Side Diff: url/mojo/url_gurl_struct_traits_unittest.cc

Issue 1768443004: Revert of [mojo-bindings] Use Watch API instead of MessagePumpMojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « mojo/shell/tests/connect/connect_test_app.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
OLDNEW
« no previous file with comments | « mojo/shell/tests/connect/connect_test_app.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698