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

Unified Diff: third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/mojo/src/mojo/public/cpp/test_support/test_utils.h
diff --git a/third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h b/third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h
deleted file mode 100644
index 7a4f8ae9347506b11d53ba9f0f10b10dd6faf747..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_TEST_SUPPORT_TEST_UTILS_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_TEST_SUPPORT_TEST_UTILS_H_
-
-#include <string>
-
-#include "third_party/mojo/src/mojo/public/cpp/system/core.h"
-
-namespace mojo {
-namespace test {
-
-// Writes a message to |handle| with message data |text|. Returns true on
-// success.
-bool WriteTextMessage(const MessagePipeHandle& handle, const std::string& text);
-
-// Reads a message from |handle|, putting its contents into |*text|. Returns
-// true on success. (This blocks if necessary and will call |MojoReadMessage()|
-// multiple times, e.g., to query the size of the message.)
-bool ReadTextMessage(const MessagePipeHandle& handle, std::string* text);
-
-// Discards a message from |handle|. Returns true on success. (This does not
-// block. It will fail if no message is available to discard.)
-bool DiscardMessage(const MessagePipeHandle& handle);
-
-// Run |single_iteration| an appropriate number of times and report its
-// performance appropriately. (This actually runs |single_iteration| for a fixed
-// amount of time and reports the number of iterations per unit time.)
-typedef void (*PerfTestSingleIteration)(void* closure);
-void IterateAndReportPerf(const char* test_name,
- const char* sub_test_name,
- PerfTestSingleIteration single_iteration,
- void* closure);
-
-} // namespace test
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_TEST_SUPPORT_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698