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

Unified Diff: mojo/dart/embedder/test/run_dart_tests.cc

Issue 1244823003: Remove dependency from //mojo to //crypto (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months 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_to_cpp_tests.cc ('k') | mojo/dart/embedder/test/validation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/test/run_dart_tests.cc
diff --git a/mojo/dart/embedder/test/run_dart_tests.cc b/mojo/dart/embedder/test/run_dart_tests.cc
index 06bb77bee9a516949ac357f845ce125b8b30cbfc..3b026000aa7aeeeb62681d4db5a57d8841da3592 100644
--- a/mojo/dart/embedder/test/run_dart_tests.cc
+++ b/mojo/dart/embedder/test/run_dart_tests.cc
@@ -7,7 +7,7 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "crypto/random.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"
@@ -20,7 +20,7 @@ namespace dart {
namespace {
static bool generateEntropy(uint8_t* buffer, intptr_t length) {
- crypto::RandBytes(reinterpret_cast<void*>(buffer), length);
+ base::RandBytes(reinterpret_cast<void*>(buffer), length);
return true;
}
« no previous file with comments | « mojo/dart/embedder/test/dart_to_cpp_tests.cc ('k') | mojo/dart/embedder/test/validation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698