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

Side by Side Diff: webkit/glue/media/buffered_resource_loader_unittest.cc

Issue 5878006: moving mocks into webkit/mocks/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/http/http_util.h" 10 #include "net/http/http_util.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebView.h"
16 #include "webkit/glue/media/buffered_resource_loader.h" 16 #include "webkit/glue/media/buffered_resource_loader.h"
17 #include "webkit/glue/mock_webframe.h" 17 #include "webkit/mocks/mock_webframe.h"
18 #include "webkit/glue/mock_weburlloader_impl.h" 18 #include "webkit/mocks/mock_weburlloader.h"
19 19
20 using ::testing::_; 20 using ::testing::_;
21 using ::testing::Assign; 21 using ::testing::Assign;
22 using ::testing::AtLeast; 22 using ::testing::AtLeast;
23 using ::testing::DeleteArg; 23 using ::testing::DeleteArg;
24 using ::testing::DoAll; 24 using ::testing::DoAll;
25 using ::testing::InSequence; 25 using ::testing::InSequence;
26 using ::testing::Invoke; 26 using ::testing::Invoke;
27 using ::testing::InvokeWithoutArgs; 27 using ::testing::InvokeWithoutArgs;
28 using ::testing::NotNull; 28 using ::testing::NotNull;
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 AllowLoaderDefer(); 477 AllowLoaderDefer();
478 478
479 EXPECT_CALL(*this, ReadCallback(net::ERR_CACHE_MISS)); 479 EXPECT_CALL(*this, ReadCallback(net::ERR_CACHE_MISS));
480 ReadLoader(20, 5, buffer); 480 ReadLoader(20, 5, buffer);
481 StopWhenLoad(); 481 StopWhenLoad();
482 } 482 }
483 // TODO(hclam): add unit test for defer loading. 483 // TODO(hclam): add unit test for defer loading.
484 484
485 } // namespace webkit_glue 485 } // namespace webkit_glue
486 486
OLDNEW
« no previous file with comments | « webkit/glue/media/buffered_data_source_unittest.cc ('k') | webkit/glue/media/simple_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698