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

Side by Side Diff: content/browser/geolocation/gateway_data_provider_common_unittest.cc

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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 | 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 "chrome/browser/geolocation/gateway_data_provider_common.h"
6
7 #include "base/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
8 #include "base/string_util.h" 6 #include "base/string_util.h"
9 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 7 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
10 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/browser/geolocation/gateway_data_provider_common.h"
11 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 using testing::_; 13 using testing::_;
15 using testing::AtLeast; 14 using testing::AtLeast;
16 using testing::DoDefault; 15 using testing::DoDefault;
17 using testing::Invoke; 16 using testing::Invoke;
18 using testing::Return; 17 using testing::Return;
19 18
20 namespace { 19 namespace {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 gateway_api_->data_out_.insert(single_router); 181 gateway_api_->data_out_.insert(single_router);
183 EXPECT_TRUE(provider_->StartDataProvider()); 182 EXPECT_TRUE(provider_->StartDataProvider());
184 main_message_loop_.Run(); 183 main_message_loop_.Run();
185 GatewayData data; 184 GatewayData data;
186 EXPECT_TRUE(provider_->GetData(&data)); 185 EXPECT_TRUE(provider_->GetData(&data));
187 EXPECT_EQ(1, static_cast<int>(data.router_data.size())); 186 EXPECT_EQ(1, static_cast<int>(data.router_data.size()));
188 EXPECT_EQ(single_router.mac_address, data.router_data.begin()->mac_address); 187 EXPECT_EQ(single_router.mac_address, data.router_data.begin()->mac_address);
189 } 188 }
190 189
191 } // namespace 190 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698