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

Unified Diff: third_party/protobuf/php/tests/autoload.php

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years 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
Index: third_party/protobuf/php/tests/autoload.php
diff --git a/third_party/protobuf/php/tests/autoload.php b/third_party/protobuf/php/tests/autoload.php
old mode 100755
new mode 100644
index 0a917fc51a4a58a1091e91c042c5fed88c8d913a..af88ba01496ee24165c89cf06eaaff3a0f8097e5
--- a/third_party/protobuf/php/tests/autoload.php
+++ b/third_party/protobuf/php/tests/autoload.php
@@ -1,25 +1,4 @@
<?php
-function getGeneratedFiles($dir, &$results = array())
-{
- $files = scandir($dir);
-
- foreach ($files as $key => $value) {
- $path = realpath($dir.DIRECTORY_SEPARATOR.$value);
- if (!is_dir($path)) {
- $results[] = $path;
- } else if ($value != "." && $value != "..") {
- getGeneratedFiles($path, $results);
- }
- }
- return $results;
-}
-
-foreach (getGeneratedFiles("generated") as $filename)
-{
- if (!is_dir($filename)) {
- include_once $filename;
- }
-
-}
-
+require_once('test.pb.php');
+require_once('test_util.php');
« no previous file with comments | « third_party/protobuf/php/tests/array_test.php ('k') | third_party/protobuf/php/tests/encode_decode_test.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698