Chromium Code Reviews| Index: content/shell/renderer/test_runner/test_common.h |
| diff --git a/content/shell/renderer/test_runner/test_common.h b/content/shell/renderer/test_runner/test_common.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..dbe673ff3e36a6355c49f2aefacf9854c84142b4 |
| --- /dev/null |
| +++ b/content/shell/renderer/test_runner/test_common.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_ |
| +#define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_ |
| + |
| +#include <stdio.h> |
|
jochen (gone - plz use gerrit)
2014/08/04 15:48:49
nit. not required anymore
Abhishek
2014/08/04 16:13:11
Done.
|
| +#include <string> |
| + |
| +#include "base/compiler_specific.h" |
|
jochen (gone - plz use gerrit)
2014/08/04 15:48:49
not required anymore
Abhishek
2014/08/04 16:13:11
Done.
|
| + |
| +namespace content { |
| + |
| +inline bool IsASCIIAlpha(char ch) { |
| + return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; |
| +} |
| + |
| +inline bool IsNotASCIIAlpha(char ch) { |
| + return !IsASCIIAlpha(ch); |
| +} |
| + |
| +std::string NormalizeLayoutTestURL(const std::string& url); |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_ |