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

Side by Side Diff: components/sessions/base_session_service_test_helper.h

Issue 1361613002: Move all core files in //components/sessions into core/ subdir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #ifndef COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_TEST_HELPER_H_
6 #define COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_TEST_HELPER_H_
7
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/memory/scoped_vector.h"
11 #include "base/task/cancelable_task_tracker.h"
12
13 namespace sessions {
14 class SessionCommand;
15 class BaseSessionService;
16
17 class BaseSessionServiceTestHelper {
18 public:
19 explicit BaseSessionServiceTestHelper(
20 BaseSessionService* base_session_service_);
21 ~BaseSessionServiceTestHelper();
22
23 // This posts the task to the SequencedWorkerPool, or run immediately
24 // if the SequencedWorkerPool has been shutdown.
25 void RunTaskOnBackendThread(const tracked_objects::Location& from_here,
26 const base::Closure& task);
27
28 // Returns true if any commands got processed yet - saved or queued.
29 bool ProcessedAnyCommands();
30
31 // Read the last session commands directly from file.
32 bool ReadLastSessionCommands(ScopedVector<SessionCommand>* commands);
33
34 private:
35 BaseSessionService* base_session_service_;
36
37 DISALLOW_COPY_AND_ASSIGN(BaseSessionServiceTestHelper);
38 };
39
40 } // namespace sessions
41
42 #endif // COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « components/sessions/base_session_service_delegate.h ('k') | components/sessions/base_session_service_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698