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

Side by Side Diff: mojo/fetcher/data_fetcher_unittest.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 | « mojo/fetcher/data_fetcher.cc ('k') | mojo/fetcher/network_fetcher_unittest.cc » ('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 "mojo/fetcher/data_fetcher.h" 5 #include "mojo/fetcher/data_fetcher.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "mojo/public/cpp/system/data_pipe.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace fetcher { 18 namespace fetcher {
19 namespace { 19 namespace {
20 20
21 class FetchCallbackHelper { 21 class FetchCallbackHelper {
22 public: 22 public:
23 FetchCallbackHelper() : run_loop_(nullptr) {} 23 FetchCallbackHelper() : run_loop_(nullptr) {}
24 ~FetchCallbackHelper() {} 24 ~FetchCallbackHelper() {}
25 25
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 TEST_F(DataFetcherTest, BasicFailure) { 102 TEST_F(DataFetcherTest, BasicFailure) {
103 TestFetchURL("about:blank", 400, std::string(), std::string()); 103 TestFetchURL("about:blank", 400, std::string(), std::string());
104 TestFetchURL("data:;base64,aGVs_-_-", 400, std::string(), std::string()); 104 TestFetchURL("data:;base64,aGVs_-_-", 400, std::string(), std::string());
105 } 105 }
106 106
107 } // namespace 107 } // namespace
108 } // namespace fetcher 108 } // namespace fetcher
109 } // namespace mojo 109 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/fetcher/data_fetcher.cc ('k') | mojo/fetcher/network_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698