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

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

Issue 7522024: Refactor chromedriver's script execution to reduce amount of custom Value parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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/utility_functions_mac.mm ('k') | chrome/test/webdriver/web_element_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/utility_functions_unittest.cc
diff --git a/chrome/test/webdriver/utility_functions_unittest.cc b/chrome/test/webdriver/utility_functions_unittest.cc
deleted file mode 100644
index 2563905da8ca8094850219806bece379dfc0022f..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/utility_functions_unittest.cc
+++ /dev/null
@@ -1,21 +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 <set>
-#include <string>
-
-#include "chrome/test/webdriver/utility_functions.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(RandomIDTest, CanGenerateSufficientlyRandomIDs) {
- std::set<std::string> generated_ids;
- for (int i = 0; i < 10000; ++i) {
- std::string id = webdriver::GenerateRandomID();
- ASSERT_EQ(32u, id.length());
- ASSERT_TRUE(generated_ids.end() == generated_ids.find(id))
- << "Generated duplicate ID: " << id
- << " on iteration " << i;
- generated_ids.insert(id);
- }
-}
« no previous file with comments | « chrome/test/webdriver/utility_functions_mac.mm ('k') | chrome/test/webdriver/web_element_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698