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

Side by Side Diff: mojo/public/bindings/tests/remote_ptr_unittest.cc

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/public/bindings/error_handler.h" 5 #include "mojo/public/bindings/error_handler.h"
6 #include "mojo/public/bindings/remote_ptr.h" 6 #include "mojo/public/bindings/remote_ptr.h"
7 #include "mojo/public/bindings/tests/math_calculator.mojom.h"
8 #include "mojo/public/bindings/tests/sample_service.mojom.h"
7 #include "mojo/public/environment/environment.h" 9 #include "mojo/public/environment/environment.h"
8 #include "mojo/public/utility/run_loop.h" 10 #include "mojo/public/utility/run_loop.h"
9 #include "mojom/math_calculator.h"
10 #include "mojom/sample_service.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace test { 14 namespace test {
15 namespace { 15 namespace {
16 16
17 class ErrorObserver : public ErrorHandler { 17 class ErrorObserver : public ErrorHandler {
18 public: 18 public:
19 ErrorObserver() : encountered_error_(false) { 19 ErrorObserver() : encountered_error_(false) {
20 } 20 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 TEST_F(RemotePtrTest, NoPeerAttribute) { 223 TEST_F(RemotePtrTest, NoPeerAttribute) {
224 // This is a test to ensure the following compiles. The sample::Port interface 224 // This is a test to ensure the following compiles. The sample::Port interface
225 // does not have an explicit Peer attribute. 225 // does not have an explicit Peer attribute.
226 InterfacePipe<sample::Port, NoInterface> pipe; 226 InterfacePipe<sample::Port, NoInterface> pipe;
227 RemotePtr<sample::Port> port(pipe.handle_to_self.Pass()); 227 RemotePtr<sample::Port> port(pipe.handle_to_self.Pass());
228 } 228 }
229 229
230 } // namespace test 230 } // namespace test
231 } // namespace mojo 231 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/bindings/tests/handle_passing_unittest.cc ('k') | mojo/public/bindings/tests/sample_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698