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

Side by Side Diff: components/mus/public/cpp/tests/test_window.h

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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/mus/public/cpp/lib/window_private.h" 9 #include "components/mus/public/cpp/lib/window_private.h"
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
11 11
12 namespace mus { 12 namespace mus {
13 13
14 // Subclass with public ctor/dtor. 14 // Subclass with public ctor/dtor.
15 class TestWindow : public Window { 15 class TestWindow : public Window {
16 public: 16 public:
17 TestWindow() { WindowPrivate(this).set_id(1); } 17 TestWindow() { WindowPrivate(this).set_id(1); }
18 explicit TestWindow(Id window_id) { WindowPrivate(this).set_id(window_id); } 18 explicit TestWindow(Id window_id) { WindowPrivate(this).set_id(window_id); }
19 ~TestWindow() {} 19 ~TestWindow() {}
20 20
21 private: 21 private:
22 MOJO_DISALLOW_COPY_AND_ASSIGN(TestWindow); 22 DISALLOW_COPY_AND_ASSIGN(TestWindow);
23 }; 23 };
24 24
25 } // namespace mus 25 } // namespace mus
26 26
27 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_H_ 27 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.h ('k') | components/mus/public/cpp/tests/window_server_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698