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

Unified Diff: chrome/test/webdriver/frame_path_unittest.cc

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/frame_path.cc ('k') | chrome/test/webdriver/http_response.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/frame_path_unittest.cc
diff --git a/chrome/test/webdriver/frame_path_unittest.cc b/chrome/test/webdriver/frame_path_unittest.cc
deleted file mode 100644
index fc8d1ecda8f5f8c975dfc68e69070581ac463dc1..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/frame_path_unittest.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <string>
-#include <vector>
-
-#include "chrome/test/webdriver/frame_path.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace webdriver {
-
-TEST(FramePathTest, Constructors) {
- EXPECT_EQ("", FramePath().value());
- EXPECT_EQ("frame", FramePath("frame").value());
- EXPECT_EQ("frame", FramePath(FramePath("frame")).value());
-}
-
-TEST(FramePathTest, Append) {
- EXPECT_EQ("frame", FramePath().Append("frame").value());
- EXPECT_EQ("frame1\nframe2", FramePath("frame1").Append("frame2").value());
-}
-
-TEST(FramePathTest, Parent) {
- FramePath path = FramePath("frame1").Append("frame2");
- EXPECT_EQ("frame1", path.Parent().value());
- EXPECT_EQ("", path.Parent().Parent().value());
- EXPECT_EQ("", path.Parent().Parent().Parent().value());
-}
-
-TEST(FramePathTest, BaseName) {
- FramePath path = FramePath("frame1").Append("frame2");
- EXPECT_EQ("frame2", path.BaseName().value());
- EXPECT_EQ("frame1", path.Parent().BaseName().value());
- EXPECT_EQ("", path.Parent().Parent().BaseName().value());
-}
-
-TEST(FramePathTest, GetComponents) {
- FramePath path = FramePath("frame1").Append("frame2");
- std::vector<std::string> components;
- path.GetComponents(&components);
- ASSERT_EQ(2u, components.size());
- EXPECT_EQ("frame1", components[0]);
- EXPECT_EQ("frame2", components[1]);
-
- components.clear();
- path.Parent().GetComponents(&components);
- ASSERT_EQ(1u, components.size());
- EXPECT_EQ("frame1", components[0]);
-
- components.clear();
- path.Parent().Parent().GetComponents(&components);
- EXPECT_EQ(0u, components.size());
-}
-
-TEST(FramePathTest, IsRootFrame) {
- EXPECT_TRUE(FramePath().IsRootFrame());
- EXPECT_FALSE(FramePath("frame").IsRootFrame());
-}
-
-TEST(FramePathTest, IsSubframe) {
- EXPECT_FALSE(FramePath().IsSubframe());
- EXPECT_TRUE(FramePath("frame").IsSubframe());
-}
-
-} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/frame_path.cc ('k') | chrome/test/webdriver/http_response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698