#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/test/chromedriver/chrome/heap_snapshot_taker.h"
#include <stddef.h>
#include <list>
#include <memory>
#include <string>
#include <utility>
#include "base/values.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/chrome/stub_devtools_client.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char* const chunks[] = …;
base::Value GetSnapshotAsValue() { … }
class DummyDevToolsClient : public StubDevToolsClient { … };
}
TEST(HeapSnapshotTaker, SuccessfulCase) { … }
TEST(HeapSnapshotTaker, FailIfErrorOnDebuggerEnable) { … }
TEST(HeapSnapshotTaker, FailIfErrorOnCollectGarbage) { … }
TEST(HeapSnapshotTaker, ErrorBeforeWhenReceivingSnapshot) { … }