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

Side by Side Diff: chrome/test/chromedriver/fake_session_accessor.cc

Issue 19616008: [chromedriver] Allow commands to be async. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/test/chromedriver/fake_session_accessor.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7
8 FakeSessionAccessor::FakeSessionAccessor(Session* session)
9 : session_(session),
10 is_accessed_(false),
11 is_session_deleted_(false) {}
12
13 Session* FakeSessionAccessor::Access(
14 scoped_ptr<base::AutoLock>* lock) {
15 is_accessed_ = true;
16 return session_;
17 }
18
19 bool FakeSessionAccessor::IsSessionDeleted() const {
20 return is_session_deleted_;
21 }
22
23 void FakeSessionAccessor::DeleteSession() {
24 ASSERT_TRUE(is_accessed_);
25 is_session_deleted_ = true;
26 }
27
28 FakeSessionAccessor::~FakeSessionAccessor() {}
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/fake_session_accessor.h ('k') | chrome/test/chromedriver/server/chromedriver_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698