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

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

Issue 2725813003: reland of [sync] Add Sessions integration tests (Closed)
Patch Set: Switch back to WaitForURLOnServer, make everything a constant 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/test/fake_server/sessions_hierarchy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/test/fake_server/sessions_hierarchy.cc
diff --git a/components/sync/test/fake_server/sessions_hierarchy.cc b/components/sync/test/fake_server/sessions_hierarchy.cc
index 8cdde963ba802551540c0f4bc7de620695675e1e..204c8cd694cb640a8be403d4318b6e81a2435525 100644
--- a/components/sync/test/fake_server/sessions_hierarchy.cc
+++ b/components/sync/test/fake_server/sessions_hierarchy.cc
@@ -10,12 +10,16 @@ namespace fake_server {
SessionsHierarchy::SessionsHierarchy() {}
+SessionsHierarchy::SessionsHierarchy(const SessionsHierarchy& other) = default;
+
+SessionsHierarchy::SessionsHierarchy(
+ std::initializer_list<std::multiset<std::string>> windows)
+ : windows_(windows) {}
+
SessionsHierarchy::~SessionsHierarchy() {}
void SessionsHierarchy::AddWindow(const std::string& tab) {
- SessionsHierarchy::Window window;
- window.insert(tab);
- windows_.insert(window);
+ windows_.insert({tab});
}
void SessionsHierarchy::AddWindow(const std::multiset<std::string>& tabs) {
« no previous file with comments | « components/sync/test/fake_server/sessions_hierarchy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698