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

Unified Diff: chrome/test/chromedriver/session_unittest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/session_thread_map.h ('k') | chrome/test/chromedriver/synchronized_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/session_unittest.cc
diff --git a/chrome/test/chromedriver/session_unittest.cc b/chrome/test/chromedriver/session_unittest.cc
index 5f6d0d02fcd0d070f6eb3915c6539c29b9d1764a..8f0afb26496c455aa4d4d1838704075f454b4cc8 100644
--- a/chrome/test/chromedriver/session_unittest.cc
+++ b/chrome/test/chromedriver/session_unittest.cc
@@ -5,25 +5,13 @@
#include <list>
#include <string>
-#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/synchronization/lock.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/chrome/stub_chrome.h"
#include "chrome/test/chromedriver/chrome/stub_web_view.h"
#include "chrome/test/chromedriver/session.h"
#include "testing/gtest/include/gtest/gtest.h"
-TEST(SessionAccessorTest, LocksSession) {
- scoped_ptr<Session> scoped_session(new Session("id"));
- Session* session = scoped_session.get();
- scoped_refptr<SessionAccessor> accessor(
- new SessionAccessorImpl(scoped_session.Pass()));
- scoped_ptr<base::AutoLock> lock;
- ASSERT_EQ(session, accessor->Access(&lock));
- ASSERT_TRUE(lock.get());
-}
-
namespace {
class MockChrome : public StubChrome {
« no previous file with comments | « chrome/test/chromedriver/session_thread_map.h ('k') | chrome/test/chromedriver/synchronized_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698