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

Unified Diff: sync/test/fake_server/sessions_hierarchy.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/test/fake_server/sessions_hierarchy.h ('k') | sync/test/fake_server/tombstone_entity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/fake_server/sessions_hierarchy.cc
diff --git a/sync/test/fake_server/sessions_hierarchy.cc b/sync/test/fake_server/sessions_hierarchy.cc
deleted file mode 100644
index 61ac472034b216fcd322e94a8922946490db6a09..0000000000000000000000000000000000000000
--- a/sync/test/fake_server/sessions_hierarchy.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/test/fake_server/sessions_hierarchy.h"
-
-#include <sstream>
-#include <string>
-
-namespace fake_server {
-
-SessionsHierarchy::SessionsHierarchy() {}
-
-SessionsHierarchy::~SessionsHierarchy() {}
-
-void SessionsHierarchy::AddWindow(
- const std::string& tab) {
- SessionsHierarchy::Window window;
- window.insert(tab);
- windows_.insert(window);
-}
-
-void SessionsHierarchy::AddWindow(
- const std::multiset<std::string>& tabs) {
- windows_.insert(tabs);
-}
-
-std::string SessionsHierarchy::ToString() const {
- std::stringstream output;
- output << "{";
- for (WindowContainer::const_iterator window_it = windows_.begin();
- window_it != windows_.end(); ++window_it) {
- if (window_it != windows_.begin())
- output << ",";
- output << "{";
-
- Window window = *window_it;
- for (Window::const_iterator tab_it = window.begin(); tab_it != window.end();
- ++tab_it) {
- if (tab_it != window.begin())
- output << ",";
- output << *tab_it;
- }
- output << "}";
- }
- output << "}";
- return output.str();
-}
-
-bool SessionsHierarchy::Equals(const SessionsHierarchy& other) const {
- return windows_ == other.windows_;
-}
-
-} // namespace fake_server
« no previous file with comments | « sync/test/fake_server/sessions_hierarchy.h ('k') | sync/test/fake_server/tombstone_entity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698