OLD | NEW |
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_SYNC_TEST_FAKE_SERVER_SESSIONS_HIERARCHY_H_ | 5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_SESSIONS_HIERARCHY_H_ |
6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_SESSIONS_HIERARCHY_H_ | 6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_SESSIONS_HIERARCHY_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 // (and vice versa). | 40 // (and vice versa). |
41 // | 41 // |
42 // Examples of equivalent hierarchies: | 42 // Examples of equivalent hierarchies: |
43 // {} and {}, {{X}} and {{X}}, {{X,Y}} and {{Y,X}}, {{X},{Y}} and {{Y},{X}} | 43 // {} and {}, {{X}} and {{X}}, {{X,Y}} and {{Y,X}}, {{X},{Y}} and {{Y},{X}} |
44 // Examples of nonequivalent hierarchies: | 44 // Examples of nonequivalent hierarchies: |
45 // {{X}} and {{Y}}, {{X}} and {{X,X}}, {{X}} and {{X},{X}} | 45 // {{X}} and {{Y}}, {{X}} and {{X,X}}, {{X}} and {{X},{X}} |
46 bool Equals(const SessionsHierarchy& other) const; | 46 bool Equals(const SessionsHierarchy& other) const; |
47 | 47 |
48 private: | 48 private: |
49 // A collection of tab URLs. | 49 // A collection of tab URLs. |
50 typedef std::multiset<std::string> Window; | 50 using Window = std::multiset<std::string>; |
51 | 51 |
52 // A collection of Windows (an instance of this collection represents a | 52 // A collection of Windows (an instance of this collection represents a |
53 // sessions hierarchy). | 53 // sessions hierarchy). |
54 typedef std::multiset<Window> WindowContainer; | 54 using WindowContainer = std::multiset<Window>; |
55 | 55 |
56 // The windows of the sessions hierarchy. | 56 // The windows of the sessions hierarchy. |
57 WindowContainer windows_; | 57 WindowContainer windows_; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace fake_server | 60 } // namespace fake_server |
61 | 61 |
62 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_SESSIONS_HIERARCHY_H_ | 62 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_SESSIONS_HIERARCHY_H_ |
OLD | NEW |