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

Side by Side Diff: chrome/test/chromedriver/commands_unittest.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/test/chromedriver/commands.h" 5 #include "chrome/test/chromedriver/commands.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 linked_ptr<base::Thread> thread(new base::Thread("1")); 227 linked_ptr<base::Thread> thread(new base::Thread("1"));
228 ASSERT_TRUE(thread->Start()); 228 ASSERT_TRUE(thread->Start());
229 std::string id("id"); 229 std::string id("id");
230 thread->task_runner()->PostTask( 230 thread->task_runner()->PostTask(
231 FROM_HERE, 231 FROM_HERE,
232 base::Bind(&internal::CreateSessionOnSessionThreadForTesting, id)); 232 base::Bind(&internal::CreateSessionOnSessionThreadForTesting, id));
233 map[id] = thread; 233 map[id] = thread;
234 234
235 base::DictionaryValue params; 235 base::DictionaryValue params;
236 params.SetInteger("param", 5); 236 params.SetInteger("param", 5);
237 base::FundamentalValue expected_value(6); 237 base::Value expected_value(6);
238 SessionCommand cmd = base::Bind( 238 SessionCommand cmd = base::Bind(
239 &ExecuteSimpleCommand, id, &params, &expected_value); 239 &ExecuteSimpleCommand, id, &params, &expected_value);
240 240
241 base::MessageLoop loop; 241 base::MessageLoop loop;
242 base::RunLoop run_loop; 242 base::RunLoop run_loop;
243 ExecuteSessionCommand( 243 ExecuteSessionCommand(
244 &map, 244 &map,
245 "cmd", 245 "cmd",
246 cmd, 246 cmd,
247 false, 247 false,
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 cmd, 828 cmd,
829 false, 829 false,
830 params, 830 params,
831 id, 831 id,
832 base::Bind(&OnFailBecauseErrorNotifyingListeners, &run_loop)); 832 base::Bind(&OnFailBecauseErrorNotifyingListeners, &run_loop));
833 run_loop.Run(); 833 run_loop.Run();
834 834
835 thread->task_runner()->PostTask(FROM_HERE, 835 thread->task_runner()->PostTask(FROM_HERE,
836 base::Bind(&VerifySessionWasDeleted)); 836 base::Bind(&VerifySessionWasDeleted));
837 } 837 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/web_view_impl_unittest.cc ('k') | chrome/test/chromedriver/element_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698