OLD | NEW |
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 #include <list> | |
6 #include <string> | 5 #include <string> |
7 | 6 |
8 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/test/chromedriver/chrome/status.h" | 8 #include "chrome/test/chromedriver/chrome/status.h" |
10 #include "chrome/test/chromedriver/chrome/stub_chrome.h" | 9 #include "chrome/test/chromedriver/chrome/stub_chrome.h" |
11 #include "chrome/test/chromedriver/chrome/stub_web_view.h" | 10 #include "chrome/test/chromedriver/chrome/stub_web_view.h" |
12 #include "chrome/test/chromedriver/session.h" | 11 #include "chrome/test/chromedriver/session.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
14 | 13 |
15 namespace { | 14 namespace { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 session.SwitchToTopFrame(); | 93 session.SwitchToTopFrame(); |
95 ASSERT_EQ(std::string(), session.GetCurrentFrameId()); | 94 ASSERT_EQ(std::string(), session.GetCurrentFrameId()); |
96 | 95 |
97 session.SwitchToSubFrame("3.1", std::string()); | 96 session.SwitchToSubFrame("3.1", std::string()); |
98 ASSERT_EQ("3.1", session.GetCurrentFrameId()); | 97 ASSERT_EQ("3.1", session.GetCurrentFrameId()); |
99 session.SwitchToSubFrame("3.2", std::string()); | 98 session.SwitchToSubFrame("3.2", std::string()); |
100 ASSERT_EQ("3.2", session.GetCurrentFrameId()); | 99 ASSERT_EQ("3.2", session.GetCurrentFrameId()); |
101 session.SwitchToTopFrame(); | 100 session.SwitchToTopFrame(); |
102 ASSERT_EQ(std::string(), session.GetCurrentFrameId()); | 101 ASSERT_EQ(std::string(), session.GetCurrentFrameId()); |
103 } | 102 } |
OLD | NEW |