OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/macros.h" | |
6 #include "mojo/shell/capability_filter_test.h" | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 | |
9 namespace mojo { | |
10 namespace shell { | |
11 namespace test { | |
12 | |
13 class CapabilityFilterApplicationTest : public CapabilityFilterTest { | |
14 public: | |
15 CapabilityFilterApplicationTest() {} | |
16 ~CapabilityFilterApplicationTest() override {} | |
17 | |
18 private: | |
19 DISALLOW_COPY_AND_ASSIGN(CapabilityFilterApplicationTest); | |
20 }; | |
21 | |
22 TEST_F(CapabilityFilterApplicationTest, Blocking) { | |
23 CreateLoader<TestApplication>("test:trusted"); | |
24 CreateLoader<TestApplication>("test:untrusted"); | |
25 RunBlockingTest(); | |
26 } | |
27 | |
28 TEST_F(CapabilityFilterApplicationTest, Wildcards) { | |
29 CreateLoader<TestApplication>("test:wildcard"); | |
30 CreateLoader<TestApplication>("test:blocked"); | |
31 CreateLoader<TestApplication>("test:wildcard2"); | |
32 CreateLoader<TestApplication>("test:wildcard3"); | |
33 RunWildcardTest(); | |
34 } | |
35 | |
36 } // namespace test | |
37 } // namespace shell | |
38 } // namespace mojo | |
OLD | NEW |