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

Side by Side Diff: chrome/browser/sessions/session_service_test_helper.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/sessions/session_id.h" 13 #include "chrome/browser/sessions/session_id.h"
14 14
15 class SessionBackend; 15 class SessionBackend;
16 class SessionCommand; 16 class SessionCommand;
17 class SessionService; 17 class SessionService;
18 struct SessionTab; 18 struct SessionTab;
19 struct SessionWindow; 19 struct SessionWindow;
20 class TabNavigation; 20 class TabNavigation;
21 21
22 // A simple class that makes writing SessionService related tests easier. 22 // A simple class that makes writing SessionService related tests easier.
23 23
24 class SessionServiceTestHelper { 24 class SessionServiceTestHelper {
25 public: 25 public:
26 explicit SessionServiceTestHelper(); 26 SessionServiceTestHelper();
27 explicit SessionServiceTestHelper(SessionService* service); 27 explicit SessionServiceTestHelper(SessionService* service);
28 ~SessionServiceTestHelper(); 28 ~SessionServiceTestHelper();
29 29
30 void PrepareTabInWindow(const SessionID& window_id, 30 void PrepareTabInWindow(const SessionID& window_id,
31 const SessionID& tab_id, 31 const SessionID& tab_id,
32 int visual_index, 32 int visual_index,
33 bool select); 33 bool select);
34 34
35 void SetTabExtensionAppID(const SessionID& window_id, 35 void SetTabExtensionAppID(const SessionID& window_id,
36 const SessionID& tab_id, 36 const SessionID& tab_id,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 SessionBackend* backend(); 73 SessionBackend* backend();
74 74
75 private: 75 private:
76 scoped_ptr<SessionService> service_; 76 scoped_ptr<SessionService> service_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); 78 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 81 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698