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

Unified Diff: mojo/dart/embedder/test/dart_test.h

Issue 1545483003: Dart: Reorganize files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix build file Created 5 years 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
« no previous file with comments | « mojo/dart/embedder/test/dart_finalizer_test.cc ('k') | mojo/dart/embedder/test/dart_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/test/dart_test.h
diff --git a/mojo/dart/embedder/test/dart_test.h b/mojo/dart/embedder/test/dart_test.h
deleted file mode 100644
index 69bdc48e9a200fa79a4ec4641bf41df0d5a3faa5..0000000000000000000000000000000000000000
--- a/mojo/dart/embedder/test/dart_test.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2015 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 MOJO_DART_EMBEDDER_TEST_DART_TEST_H_
-#define MOJO_DART_EMBEDDER_TEST_DART_TEST_H_
-
-#include "base/bind.h"
-#include "base/files/file_path.h"
-#include "base/path_service.h"
-#include "base/rand_util.h"
-#include "mojo/dart/embedder/dart_controller.h"
-#include "mojo/public/c/system/types.h"
-#include "mojo/public/cpp/environment/environment.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace mojo {
-namespace dart {
-
-class DartTest : public testing::Test {
- public:
- DartTest() {}
-
- static void SetUpTestCase() {
- DartController::Initialize(nullptr, true, false, nullptr, 0);
- }
-
- static void TearDownTestCase() {
- DartController::Shutdown();
- }
-
- void RunDartTest(const base::FilePath& path,
- const std::vector<std::string>& script_arguments,
- bool compile_all,
- bool expect_unhandled_exception,
- int expected_unclosed_handles);
-
- protected:
- static bool GenerateEntropy(uint8_t* buffer, intptr_t length) {
- base::RandBytes(static_cast<void*>(buffer), length);
- return true;
- }
-
- static void ExceptionCallback(bool* exception,
- int64_t* closed_handles,
- Dart_Handle error,
- int64_t count) {
- EXPECT_TRUE(Dart_IsError(error));
- *exception = true;
- *closed_handles = count;
- }
-};
-
-} // namespace dart
-} // namespace mojo
-
-#endif // MOJO_DART_EMBEDDER_TEST_DART_TEST_H_
« no previous file with comments | « mojo/dart/embedder/test/dart_finalizer_test.cc ('k') | mojo/dart/embedder/test/dart_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698