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

Side by Side Diff: services/asset_bundle/asset_bundle_apptest.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « services/asset_bundle/BUILD.gn ('k') | services/asset_bundle/asset_bundle_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "mojo/data_pipe_utils/data_pipe_utils.h" 10 #include "mojo/data_pipe_utils/data_pipe_utils.h"
11 #include "mojo/public/cpp/application/application_impl.h" 11 #include "mojo/public/cpp/application/application_impl.h"
12 #include "mojo/public/cpp/application/application_test_base.h" 12 #include "mojo/public/cpp/application/application_test_base.h"
13 #include "mojo/services/asset_bundle/public/interfaces/asset_bundle.mojom.h" 13 #include "mojo/services/asset_bundle/interfaces/asset_bundle.mojom.h"
14 #include "third_party/zlib/google/zip.h" 14 #include "third_party/zlib/google/zip.h"
15 15
16 namespace asset_bundle { 16 namespace asset_bundle {
17 17
18 class AssetBundleAppTest : public mojo::test::ApplicationTestBase { 18 class AssetBundleAppTest : public mojo::test::ApplicationTestBase {
19 public: 19 public:
20 AssetBundleAppTest() {} 20 AssetBundleAppTest() {}
21 ~AssetBundleAppTest() override {} 21 ~AssetBundleAppTest() override {}
22 22
23 void SetUp() override { 23 void SetUp() override {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 [&](mojo::ScopedDataPipeConsumerHandle asset_pipe) { 86 [&](mojo::ScopedDataPipeConsumerHandle asset_pipe) {
87 mojo::common::BlockingCopyToString(asset_pipe.Pass(), &outside_content); 87 mojo::common::BlockingCopyToString(asset_pipe.Pass(), &outside_content);
88 }); 88 });
89 ASSERT_TRUE(asset_bundle.WaitForIncomingResponse()); 89 ASSERT_TRUE(asset_bundle.WaitForIncomingResponse());
90 90
91 EXPECT_EQ("", outside_content) 91 EXPECT_EQ("", outside_content)
92 << "Traversing outside of bundle is treated as an empty data stream"; 92 << "Traversing outside of bundle is treated as an empty data stream";
93 } 93 }
94 94
95 } // namespace asset_bundle 95 } // namespace asset_bundle
OLDNEW
« no previous file with comments | « services/asset_bundle/BUILD.gn ('k') | services/asset_bundle/asset_bundle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698