| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/public/cpp/bindings/tests/validation_util.h" | 5 #include "mojo/public/cpp/bindings/tests/validation_util.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "gtest/gtest.h" |
| 9 #include "mojo/public/cpp/bindings/tests/validation_test_input_parser.h" | 10 #include "mojo/public/cpp/bindings/tests/validation_test_input_parser.h" |
| 10 #include "mojo/public/cpp/test_support/test_support.h" | 11 #include "mojo/public/cpp/test_support/test_support.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace test { | 14 namespace test { |
| 15 namespace validation_util { | 15 namespace validation_util { |
| 16 | 16 |
| 17 std::string GetValidationDataPath(const std::string& root, | 17 std::string GetValidationDataPath(const std::string& root, |
| 18 const std::string& suffix) { | 18 const std::string& suffix) { |
| 19 return "mojo/public/interfaces/bindings/tests/data/validation/" + root + | 19 return "mojo/public/interfaces/bindings/tests/data/validation/" + root + |
| 20 suffix; | 20 suffix; |
| 21 } | 21 } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 names[i].substr(0, prefix.size()) == prefix && | 98 names[i].substr(0, prefix.size()) == prefix && |
| 99 names[i].substr(names[i].size() - suffix.size()) == suffix) | 99 names[i].substr(names[i].size() - suffix.size()) == suffix) |
| 100 tests.push_back(names[i].substr(0, names[i].size() - suffix.size())); | 100 tests.push_back(names[i].substr(0, names[i].size() - suffix.size())); |
| 101 } | 101 } |
| 102 return tests; | 102 return tests; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace validation_util | 105 } // namespace validation_util |
| 106 } // namespace test | 106 } // namespace test |
| 107 } // namespace mojo | 107 } // namespace mojo |
| OLD | NEW |