| OLD | NEW |
| 1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 MockWarningReporter(const string &filename, uint64 cu_offset) | 76 MockWarningReporter(const string &filename, uint64 cu_offset) |
| 77 : DwarfCUToModule::WarningReporter(filename, cu_offset) { } | 77 : DwarfCUToModule::WarningReporter(filename, cu_offset) { } |
| 78 MOCK_METHOD1(SetCUName, void(const string &name)); | 78 MOCK_METHOD1(SetCUName, void(const string &name)); |
| 79 MOCK_METHOD2(UnknownSpecification, void(uint64 offset, uint64 target)); | 79 MOCK_METHOD2(UnknownSpecification, void(uint64 offset, uint64 target)); |
| 80 MOCK_METHOD2(UnknownAbstractOrigin, void(uint64 offset, uint64 target)); | 80 MOCK_METHOD2(UnknownAbstractOrigin, void(uint64 offset, uint64 target)); |
| 81 MOCK_METHOD1(MissingSection, void(const string §ion_name)); | 81 MOCK_METHOD1(MissingSection, void(const string §ion_name)); |
| 82 MOCK_METHOD1(BadLineInfoOffset, void(uint64 offset)); | 82 MOCK_METHOD1(BadLineInfoOffset, void(uint64 offset)); |
| 83 MOCK_METHOD1(UncoveredFunction, void(const Module::Function &function)); | 83 MOCK_METHOD1(UncoveredFunction, void(const Module::Function &function)); |
| 84 MOCK_METHOD1(UncoveredLine, void(const Module::Line &line)); | 84 MOCK_METHOD1(UncoveredLine, void(const Module::Line &line)); |
| 85 MOCK_METHOD1(UnnamedFunction, void(uint64 offset)); | 85 MOCK_METHOD1(UnnamedFunction, void(uint64 offset)); |
| 86 MOCK_METHOD2(DemangleError, void(const string &input, int error)); | 86 MOCK_METHOD1(DemangleError, void(const string &input)); |
| 87 MOCK_METHOD2(UnhandledInterCUReference, void(uint64 offset, uint64 target)); | 87 MOCK_METHOD2(UnhandledInterCUReference, void(uint64 offset, uint64 target)); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 // A fixture class including all the objects needed to handle a | 90 // A fixture class including all the objects needed to handle a |
| 91 // compilation unit, and their entourage. It includes member functions | 91 // compilation unit, and their entourage. It includes member functions |
| 92 // for doing common kinds of setup and tests. | 92 // for doing common kinds of setup and tests. |
| 93 class CUFixtureBase { | 93 class CUFixtureBase { |
| 94 public: | 94 public: |
| 95 // If we have: | 95 // If we have: |
| 96 // | 96 // |
| (...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1795 reporter.UncoveredLine(line); | 1795 reporter.UncoveredLine(line); |
| 1796 EXPECT_TRUE(reporter.uncovered_warnings_enabled()); | 1796 EXPECT_TRUE(reporter.uncovered_warnings_enabled()); |
| 1797 } | 1797 } |
| 1798 | 1798 |
| 1799 TEST_F(Reporter, UnnamedFunction) { | 1799 TEST_F(Reporter, UnnamedFunction) { |
| 1800 reporter.UnnamedFunction(0x90c0baff9dedb2d9ULL); | 1800 reporter.UnnamedFunction(0x90c0baff9dedb2d9ULL); |
| 1801 } | 1801 } |
| 1802 | 1802 |
| 1803 // Would be nice to also test: | 1803 // Would be nice to also test: |
| 1804 // - overlapping lines, functions | 1804 // - overlapping lines, functions |
| OLD | NEW |