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

Unified Diff: chrome/test/chromedriver/test_util.h

Issue 2353333002: Reland of Force U.S. English keyboard layout for TextfieldTest.KeysWithModifiersTest (Closed)
Patch Set: Use ScopedCFTypeRef instead of PlatformKeyboardLayout Created 4 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/chromedriver/keycode_text_conversion_unittest.cc ('k') | chrome/test/chromedriver/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/test_util.h
diff --git a/chrome/test/chromedriver/test_util.h b/chrome/test/chromedriver/test_util.h
deleted file mode 100644
index 305618b5a9109ec44b82bfca8c7a1f3d53eccd7c..0000000000000000000000000000000000000000
--- a/chrome/test/chromedriver/test_util.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef CHROME_TEST_CHROMEDRIVER_TEST_UTIL_H_
-#define CHROME_TEST_CHROMEDRIVER_TEST_UTIL_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "build/build_config.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#elif defined(OS_MACOSX)
-#include <Carbon/Carbon.h>
-#include "base/mac/scoped_cftyperef.h"
-#endif
-
-// Restores the keyboard layout that was active at this object's creation
-// when this object goes out of scope.
-class RestoreKeyboardLayoutOnDestruct {
- public:
- RestoreKeyboardLayoutOnDestruct();
- ~RestoreKeyboardLayoutOnDestruct();
-
- private:
-#if defined(OS_WIN)
- HKL layout_;
-#elif defined(OS_MACOSX)
- base::ScopedCFTypeRef<TISInputSourceRef> layout_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(RestoreKeyboardLayoutOnDestruct);
-};
-
-#if defined(OS_WIN)
-// Loads and activates the given keyboard layout. |input_locale_identifier|
-// is composed of a device and language ID. Returns true on success.
-// See http://msdn.microsoft.com/en-us/library/dd318693(v=vs.85).aspx
-// Example: "00000409" is the default en-us keyboard layout.
-bool SwitchKeyboardLayout(const std::string& input_locale_identifier);
-#endif // defined(OS_WIN)
-
-#if defined(OS_MACOSX)
-// Selects the input source for the given input source ID. Returns true on
-// success.
-// Example: "com.apple.keyboardlayout.US" is the default en-us keyboard layout.
-bool SwitchKeyboardLayout(const std::string& input_source_id);
-#endif // defined(OS_MACOSX)
-
-#endif // CHROME_TEST_CHROMEDRIVER_TEST_UTIL_H_
« no previous file with comments | « chrome/test/chromedriver/keycode_text_conversion_unittest.cc ('k') | chrome/test/chromedriver/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698