| 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 #include "components/sync/test/fake_server/sessions_hierarchy.h" | 5 #include "components/sync/test/fake_server/sessions_hierarchy.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include <string> | |
| 9 | 8 |
| 10 namespace fake_server { | 9 namespace fake_server { |
| 11 | 10 |
| 12 SessionsHierarchy::SessionsHierarchy() {} | 11 SessionsHierarchy::SessionsHierarchy() {} |
| 13 | 12 |
| 14 SessionsHierarchy::~SessionsHierarchy() {} | 13 SessionsHierarchy::~SessionsHierarchy() {} |
| 15 | 14 |
| 16 void SessionsHierarchy::AddWindow(const std::string& tab) { | 15 void SessionsHierarchy::AddWindow(const std::string& tab) { |
| 17 SessionsHierarchy::Window window; | 16 SessionsHierarchy::Window window; |
| 18 window.insert(tab); | 17 window.insert(tab); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 43 } | 42 } |
| 44 output << "}"; | 43 output << "}"; |
| 45 return output.str(); | 44 return output.str(); |
| 46 } | 45 } |
| 47 | 46 |
| 48 bool SessionsHierarchy::Equals(const SessionsHierarchy& other) const { | 47 bool SessionsHierarchy::Equals(const SessionsHierarchy& other) const { |
| 49 return windows_ == other.windows_; | 48 return windows_ == other.windows_; |
| 50 } | 49 } |
| 51 | 50 |
| 52 } // namespace fake_server | 51 } // namespace fake_server |
| OLD | NEW |