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

Side by Side Diff: mojo/public/cpp/bindings/tests/versioning_test_service.cc

Issue 1755003002: Remove MOJO_DISALLOW_COPY_AND_ASSIGN and MOJO_ALLOW_UNUSED_LOCAL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "mojo/public/c/system/main.h" 9 #include "mojo/public/c/system/main.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h" 10 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "mojo/public/cpp/system/macros.h" 11 #include "mojo/public/cpp/system/macros.h"
12 #include "mojo/public/interfaces/bindings/tests/versioning_test_service.mojom.h" 12 #include "mojo/public/interfaces/bindings/tests/versioning_test_service.mojom.h"
13 #include "mojo/shell/public/cpp/application_runner.h" 13 #include "mojo/shell/public/cpp/application_runner.h"
14 #include "mojo/shell/public/cpp/interface_factory.h" 14 #include "mojo/shell/public/cpp/interface_factory.h"
15 #include "mojo/shell/public/cpp/shell_client.h" 15 #include "mojo/shell/public/cpp/shell_client.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace test { 18 namespace test {
19 namespace versioning { 19 namespace versioning {
20 20
21 struct EmployeeInfo { 21 struct EmployeeInfo {
22 public: 22 public:
23 EmployeeInfo() {} 23 EmployeeInfo() {}
24 24
25 EmployeePtr employee; 25 EmployeePtr employee;
26 Array<uint8_t> finger_print; 26 Array<uint8_t> finger_print;
27 27
28 private: 28 private:
29 MOJO_DISALLOW_COPY_AND_ASSIGN(EmployeeInfo); 29 DISALLOW_COPY_AND_ASSIGN(EmployeeInfo);
30 }; 30 };
31 31
32 class HumanResourceDatabaseImpl : public HumanResourceDatabase { 32 class HumanResourceDatabaseImpl : public HumanResourceDatabase {
33 public: 33 public:
34 explicit HumanResourceDatabaseImpl( 34 explicit HumanResourceDatabaseImpl(
35 InterfaceRequest<HumanResourceDatabase> request) 35 InterfaceRequest<HumanResourceDatabase> request)
36 : strong_binding_(this, request.Pass()) { 36 : strong_binding_(this, request.Pass()) {
37 // Pretend that there is already some data in the system. 37 // Pretend that there is already some data in the system.
38 EmployeeInfo* info = new EmployeeInfo(); 38 EmployeeInfo* info = new EmployeeInfo();
39 employees_[1] = info; 39 employees_[1] = info;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } // namespace versioning 117 } // namespace versioning
118 } // namespace test 118 } // namespace test
119 } // namespace mojo 119 } // namespace mojo
120 120
121 MojoResult MojoMain(MojoHandle request) { 121 MojoResult MojoMain(MojoHandle request) {
122 mojo::ApplicationRunner runner( 122 mojo::ApplicationRunner runner(
123 new mojo::test::versioning::HumanResourceSystemServer()); 123 new mojo::test::versioning::HumanResourceSystemServer());
124 124
125 return runner.Run(request); 125 return runner.Run(request);
126 } 126 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/versioning_apptest.cc ('k') | mojo/public/cpp/environment/async_waiter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698