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

Unified Diff: sandbox/linux/bpf_dsl/cons_unittest.cc

Issue 391043003: Revert of Add domain-specific language for BPF policies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « sandbox/linux/bpf_dsl/cons.h ('k') | sandbox/linux/sandbox_linux.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/bpf_dsl/cons_unittest.cc
diff --git a/sandbox/linux/bpf_dsl/cons_unittest.cc b/sandbox/linux/bpf_dsl/cons_unittest.cc
deleted file mode 100644
index 790cae081208a33914c79e970c03760987b5e79e..0000000000000000000000000000000000000000
--- a/sandbox/linux/bpf_dsl/cons_unittest.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 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.
-
-#include "sandbox/linux/bpf_dsl/cons.h"
-
-#include <string>
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace sandbox {
-namespace {
-
-std::string Join(Cons<char>::List char_list) {
- std::string res;
- for (Cons<char>::List it = char_list; it; it = it->tail()) {
- res.push_back(it->head());
- }
- return res;
-}
-
-TEST(ConsListTest, Basic) {
- Cons<char>::List ba =
- Cons<char>::Make('b', Cons<char>::Make('a', Cons<char>::List()));
- EXPECT_EQ("ba", Join(ba));
-
- Cons<char>::List cba = Cons<char>::Make('c', ba);
- Cons<char>::List dba = Cons<char>::Make('d', ba);
- EXPECT_EQ("cba", Join(cba));
- EXPECT_EQ("dba", Join(dba));
-}
-
-} // namespace
-} // namespace sandbox
« no previous file with comments | « sandbox/linux/bpf_dsl/cons.h ('k') | sandbox/linux/sandbox_linux.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698