1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
11 #include "chrome/browser/sessions/session_id.h"
14 class SessionSpecifics
;
17 namespace browser_sync
{
21 class SessionSyncTestHelper
{
23 SessionSyncTestHelper() : max_tab_node_id_(0) {}
25 static void BuildSessionSpecifics(const std::string
& tag
,
26 sync_pb::SessionSpecifics
* meta
);
28 static void AddWindowSpecifics(int window_id
,
29 const std::vector
<int>& tab_list
,
30 sync_pb::SessionSpecifics
* meta
);
32 static void VerifySyncedSession(
33 const std::string
& tag
,
34 const std::vector
<std::vector
<SessionID::id_type
> >& windows
,
35 const SyncedSession
& session
);
37 void BuildTabSpecifics(const std::string
& tag
,
40 sync_pb::SessionSpecifics
* tab_base
);
42 sync_pb::SessionSpecifics
BuildForeignSession(
43 const std::string
& tag
,
44 const std::vector
<SessionID::id_type
>& tab_list
,
45 std::vector
<sync_pb::SessionSpecifics
>* tabs
);
51 DISALLOW_COPY_AND_ASSIGN(SessionSyncTestHelper
);
54 } // namespace browser_sync
56 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_