mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Update breakpad to make it work with MinGW
This commit is contained in:
10
thirdparty/breakpad/common/memory_unittest.cc
vendored
10
thirdparty/breakpad/common/memory_unittest.cc
vendored
@@ -27,8 +27,8 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
#include "common/memory.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
using namespace google_breakpad;
|
||||
|
||||
@@ -87,3 +87,11 @@ TEST(WastefulVectorTest, Simple) {
|
||||
for (unsigned i = 0; i < 256; ++i)
|
||||
ASSERT_EQ(v[i], i);
|
||||
}
|
||||
|
||||
TEST(WastefulVectorTest, UsesPageAllocator) {
|
||||
PageAllocator allocator_;
|
||||
wasteful_vector<unsigned> v(&allocator_);
|
||||
|
||||
v.push_back(1);
|
||||
ASSERT_TRUE(allocator_.OwnsPointer(&v[0]));
|
||||
}
|
||||
|
Reference in New Issue
Block a user