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

Side by Side Diff: components/sync/test/fake_server/sessions_hierarchy.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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_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
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_
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/fake_server.cc ('k') | components/sync_bookmarks/bookmark_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698