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

Side by Side Diff: chrome/browser/sync/test/live_sync/sessions_helper.h

Issue 7828055: Move sync test code out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_TEST_LIVE_SYNC_SESSIONS_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_SESSIONS_HELPER_H_
6 #define CHROME_TEST_LIVE_SYNC_SESSIONS_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_SESSIONS_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "chrome/browser/sessions/session_types.h" 13 #include "chrome/browser/sessions/session_types.h"
14 #include "chrome/browser/sync/engine/nigori_util.h" 14 #include "chrome/browser/sync/engine/nigori_util.h"
15 #include "chrome/test/live_sync/live_sync_test.h" 15 #include "chrome/browser/sync/test/live_sync/live_sync_test.h"
16 16
17 class GURL; 17 class GURL;
18 18
19 typedef std::vector<const SyncedSession*> SyncedSessionVector; 19 typedef std::vector<const SyncedSession*> SyncedSessionVector;
20 typedef std::vector<SessionWindow*> SessionWindowVector; 20 typedef std::vector<SessionWindow*> SessionWindowVector;
21 21
22 namespace sessions_helper { 22 namespace sessions_helper {
23 23
24 // Copies the local session windows of profile |index| to |local_windows|. 24 // Copies the local session windows of profile |index| to |local_windows|.
25 // Returns true if successful. 25 // Returns true if successful.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Check if the session model associator's knows that the current open tab 99 // Check if the session model associator's knows that the current open tab
100 // has this url. 100 // has this url.
101 bool ModelAssociatorHasTabWithUrl(int index, const GURL& url); 101 bool ModelAssociatorHasTabWithUrl(int index, const GURL& url);
102 102
103 // Stores a pointer to the local session for a given profile in |session|. 103 // Stores a pointer to the local session for a given profile in |session|.
104 // Returns true on success, false on failure. 104 // Returns true on success, false on failure.
105 bool GetLocalSession(int index, const SyncedSession** session); 105 bool GetLocalSession(int index, const SyncedSession** session);
106 106
107 } // namespace sessions_helper 107 } // namespace sessions_helper
108 108
109 #endif // CHROME_TEST_LIVE_SYNC_SESSIONS_HELPER_H_ 109 #endif // CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_SESSIONS_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/live_sync/preferences_helper.cc ('k') | chrome/browser/sync/test/live_sync/sessions_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698