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

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

Issue 694813003: Changing SessionService to have a BaseSessionService, not being one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed browser tests Created 6 years, 1 month 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
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
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const sessions::SerializedNavigationEntry& actual); 72 const sessions::SerializedNavigationEntry& actual);
73 73
74 void AssertSingleWindowWithSingleTab( 74 void AssertSingleWindowWithSingleTab(
75 const std::vector<SessionWindow*>& windows, 75 const std::vector<SessionWindow*>& windows,
76 size_t nav_count); 76 size_t nav_count);
77 77
78 void SetService(SessionService* service); 78 void SetService(SessionService* service);
79 SessionService* ReleaseService() { return service_.release(); } 79 SessionService* ReleaseService() { return service_.release(); }
80 SessionService* service() { return service_.get(); } 80 SessionService* service() { return service_.get(); }
81 81
82 SessionBackend* backend();
83
84 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, 82 void RunTaskOnBackendThread(const tracked_objects::Location& from_here,
85 const base::Closure& task); 83 const base::Closure& task);
86 84
87 private: 85 private:
88 scoped_ptr<SessionService> service_; 86 scoped_ptr<SessionService> service_;
89 87
90 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); 88 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper);
91 }; 89 };
92 90
93 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 91 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service_commands.cc ('k') | chrome/browser/sessions/session_service_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698